Sign in to follow this  
Followers 0

Small tools to help you with USB drive management

3 posts in this topic

Posted (edited)


Updated: 7 Aug 2012

Some Tool scripts to help you with your USB drive management:

ChangeUSBdriveLetter: Easily change a USB drive Letter

The script will pop-up the ejectable USB drives only. Double Click to select

Select the new drive letter and press OK

Keep in mind that the script will require elevated rights, same as Computer/Disk Management


EjectUSB: Easily eject a USB drive.

The script will pop-up all the ejectable USB drives. Double Click to eject

The script will automatically (by default without pop-up) eject the USB drive if only one USB drive is identified on the system.

This script has an optional ini file (see the Description in the header of the script, example in the zip file)

This script uses wraithdu's _USB_UDF.au3 and can be found here: _USB_UDF.au3



USBScanAndFix: Correct recurring Scan and fix message on USB devices

When a FAT formatted "removable" USB drive is attached under Vista and Win7, the "Scan and Fix" dialog is sometimes shown each time you insert the USB device. Performing Scan and fix does not seem to resolve the issue, however, no errors are found on the device.

The reason for the error is that the USB drive was formatted FAT(32) on Windows XP.

When the device was not properly dismounted by Windows XP, an archive bit in the drive's boot sector is set that needs to reset before it will stop reporting that there is an error. The script will perform a checkdsk /f on the selected USB device.

The script will pop-up the ejectable USB drives only as in the previous 2 scripts but will grey out the non-FAT formated devices.

Please note that the script is OS language sensitive (chkdsk !) and currently only supports English and Dutch. Any help would be appreciated if you could send me your language settings (line 63 to 66)


StdoutRead seems sometime to miss some console data. I am not sure why this is happening. I made the loop as tight as possible. If anyone has a suggestion, let me know... Anyhow, most of the time, the script runs correctly and it's all about cosmetics anyhow, the chkdsk is performed.


All scripts tested in Windows XP, Windows Vista, Windows 7, x64


Edited by GreenCan
Attckdog likes this

Share this post

Link to post
Share on other sites


New USBScanAndFix script added to first post.


Share this post

Link to post
Share on other sites


Thanks for sharing!

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0