freanir Posted March 4, 2006 Posted March 4, 2006 (edited) Yes AutoIT can be used to format an removeable Drive, but you have to use a DOS Command. ;example #include <process.au3> $sDrive = FileSelectFolder("Choose a Drive.", "", 2); Select a Drive _RunDOS("format " & $sDrive & "/X");Formats the Drive with NTFS and cancels every allocation ;of the Volume MsgBox(0, "Finished", $sDrive & "is formatted") This Script is usable, although you may want to add Control and Error routines. Just check the Helpfile. For further Information on "format" type in the cmd.exe Window format /? Edited March 4, 2006 by freanir freanir
BlazeLondon Posted March 4, 2006 Author Posted March 4, 2006 can autoIT format a removable drive?bit sloppy, as the script has no idea what the dos format command has done.it says complete if you select a dvd drive straight away,obviously nothing has been formatted.better somehow to launch the windows format control.not sure how to go about that thocall a dll?
freanir Posted March 5, 2006 Posted March 5, 2006 (edited) bit sloppy, as the script has no idea what the dos format command has done.The script works for me. I won't do everything for you, except you're willing to pay me. BTW: I answered your question it is posible to format per AutoIt, the script is just a bonus. So you've got to excuse the "sloppiness".it says complete if you select a dvd drive straight away,obviously nothing has been formatted.Can't test it, because I've got no (re)writeable Medium, except a HDD.better somehow to launch the windows format control.Imho the control is just a frontend for the Dos-Command. Edited March 5, 2006 by freanir freanir
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now