How can I run scandisk in VB and have the scan disk options in my program??
Printable View
How can I run scandisk in VB and have the scan disk options in my program??
Here is a pointer in the right direction. You may have to monkey around with it to make it work for your needs.
Hope it helps.
PS: Do NOT assume that the scandisk exe file necessarily resides in the C:\Windows directory. Use the API call that returns the Windows directory:
http://www.vbapi.com/ref/g/getwindowsdirectory.html
Good luck with it