Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I format a disk
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00177270
Message ID:
00177310
Views:
36
Hi Jean-René,

>I need to format a disk in the drive a:\. I do not want to use the DOS format from VFP with the run command.

The following API call would display the Windows standard format dialog:
Set Library To FoxTools Additive
Declare Integer SHFormatDrive in Shell32.DLL ;
   Integer HWND, Integer Drive, Integer FmtID, Integer Options
SHFormatDrive( _WhToHwnd(_WMainWind()), 0, 0xFFFF,0)
Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform