Garret Picchioni Posted July 23, 2006 Share Posted July 23, 2006 (edited) Is this a possibility in AutoIt? I've scanned the forums and help file but have come up empty. Using cmd won't work either. I'm writing a script that will format, rename, and update a set of flash drives (nightly) that we use at work. Since the drives are removable cmd asks you to press enter when the drive is inserted (regardless of if the drive is inserted already). Sending an Enter keystroke only works a user is logged into the machine at the time it runs (which I'd like to avoid). I'm currently using a workaround for the format FileDelete("E:\*.*") but have come up empty for the renaming of the volume. Does anyone know if AutoIt is capable of doing this, or should I start hunting for command line based utilities? Thanks in advanced, Garret Edited July 23, 2006 by Garret Picchioni Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted July 24, 2006 Moderators Share Posted July 24, 2006 (edited) This should work, but I have no way of testing it right now. If somebody could test it for me that would be great._FormatVolume.au3Edit: Found out that this requires Windows Server "Longhorn" or Windows Server 2003. Edited July 24, 2006 by big_daddy Link to comment Share on other sites More sharing options...
Garret Picchioni Posted July 24, 2006 Author Share Posted July 24, 2006 I can test it when I get back to work on Tuesday. Thank you for all of your help and I'll keep you posted Link to comment Share on other sites More sharing options...
Garret Picchioni Posted July 24, 2006 Author Share Posted July 24, 2006 There is no chance of it working with XP Pro? Link to comment Share on other sites More sharing options...
GaryFrost Posted July 24, 2006 Share Posted July 24, 2006 Look for Scriptomatic in scripts and scraps once you have that and latest beta try looking into Win32_LogicalDisk SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Garret Picchioni Posted July 25, 2006 Author Share Posted July 25, 2006 Look for Scriptomatic in scripts and scrapsonce you have that and latest betatry looking into Win32_LogicalDiskCould you tell me what I might be looking for with Win32_LogicalDisk?I've been playing around with it this morning but can't find anything that would help me with a format Link to comment Share on other sites More sharing options...
GaryFrost Posted July 25, 2006 Share Posted July 25, 2006 Sorry wasn't looking at for format, but for volumname SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
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