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