Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting a Floppy Thru API Howto
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Formatting a Floppy Thru API Howto
Miscellaneous
Thread ID:
00474456
Message ID:
00474456
Views:
58
Some code I found that a lot of people usually ask for.
'************************************************
' File: WSHFormatDisk.vbs (WSH-sample in VBScript)
' Author: (c) G. Born
' The script opens the Windows Format dialog to
' format a floppy disk.
' In no way shall the author be liable for any
' losses or damages resulting from the use of this
' program. Use AS-IS at your own risk.
'
' The code is the property of the author. You may
' use the code and modify it, as far as this header
' remains intact. Further updates and other samples
' may be found on my site:
' http://www.Borncity.de
'************************************************
Option Explicit

Dim WshObj

' Object needed for the Run-Method
Set WshObj = Wscript.CreateObject("WScript.Shell")

WshObj.Run "RunDll32.exe Shell32.dll,SHFormatDrive", _
            1, true ' launch dialog

' End
Next
Reply
Map
View

Click here to load this message in the networking platform