Folks,
Version 96 compatibility completed. Version 96 is a pretty big release, including the new DNS class.
Located some methods and properties missing from the Chilkat release notes and added them.
Found one more class missing a Version property.
As ever, documentation fixes and additions, minor code fixes.
Let me know what you think...
https://github.com/billand88/ChilkatVFP
Bill Anderson
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
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 hopefully enufs "N" to respond to all questions. Still not quite satisfying...
Thus I thought that there may be some API call or tool available to do this in a more controllable way. Any ideas welcome :=)
wOOdy
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 ? errReturn
I believe the return codes etc are as described here: https://learn.microsoft.com/en-us/previous-versions/windows/desktop/vdswmi/c...
Hi Alan, Thanks for this much needed hint on the obvious way to go. Moreover, I had even given several DevCon talks about controlling the PC with the shell object etc, but that was many years ago. But I might have known :( Seems I'm getting really old :(
wOOdy
-----Ursprüngliche Nachricht----- Von: ProFox profox-bounces@leafe.com Im Auftrag von Alan Bourke Gesendet: Montag, 4. Dezember 2023 10:10 An: profoxtech@leafe.com Betreff: Re: ChdkDsk from VFP
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 ? errReturn
I believe the return codes etc are as described here: https://learn.microsoft.com/en-us/previous-versions/windows/desktop/vdswmi/c hkdsk-method-in-class-win32-volume
Or Powershell 'repair-volume'
https://learn.microsoft.com/en-us/powershell/module/storage/repair-volume?vi...