AW: ChdkDsk from VFP

2023-12-08 Thread juergen
richt- Von: ProFox Im Auftrag von Alan Bourke Gesendet: Montag, 4. Dezember 2023 10:10 An: profoxt...@leafe.com Betreff: Re: ChdkDsk from VFP You could skin it a different way and use WMI: strComputer = "." objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\&qu

Re: ChdkDsk from VFP

2023-12-04 Thread Alan Bourke
Or Powershell 'repair-volume' https://learn.microsoft.com/en-us/powershell/module/storage/repair-volume?view=windowsserver2022-ps -- Alan Bourke alanpbourke (at) fastmail (dot) fm ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: h

Re: ChdkDsk from VFP

2023-12-04 Thread Alan Bourke
You could skin it a different way and use WMI: strComputer = "." objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" + strComputer +"\root\cimv2") objDisk = objWMIService.Get("Win32_LogicalDisk.DeviceID='D:'") errReturn = objDisk.ChkDsk(.f.) && or .t. to fix errors ? err

ChdkDsk from VFP

2023-11-30 Thread juergen
Hi guys, this time I need some help. I have the need to do a "CHKDSK D: /F" from within VFP on some USB-Sticks. Yes I could do a RUN, but that thingy still needs no, one ore more keypress sometimes. The next best thing would be a shell.run() and a shell.sendkeys() to that window, with hopefull