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
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
2 matches
Mail list logo