Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Small tools to help you with USB drive management

Eject USB Drive USB Drive letter change Scan and Fix

  • Please log in to reply
2 replies to this topic

#1 GreenCan

GreenCan

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 325 posts

Posted 30 July 2012 - 03:07 PM

Hi,

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
Attached File  ChangeUSBdriveLetter 1.1.zip   3.6KB   611 downloads

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
Attached File  EjectUSB 1.2.zip   7.71KB   316 downloads

New:
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)

Issue:
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.
Attached File  USBScanAndFix 1.0.zip   4.07KB   229 downloads

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

Greencan

Edited by GreenCan, 08 August 2012 - 02:02 PM.

  • Attckdog likes this







#2 GreenCan

GreenCan

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 325 posts

Posted 07 August 2012 - 09:29 AM

New USBScanAndFix script added to first post.

GreenCan

#3 TheSaint

TheSaint

    *** Knight Templar ***

  • MVPs
  • 5,839 posts

Posted 07 August 2012 - 12:13 PM

Thanks for sharing!

Make sure brain is in gear before opening mouth! Ignoring those who try to divert conversation with irrelevancies. If I put effort into communication, I expect you to read properly & fully, or just not comment. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users