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