29 Mar 2008

USB Disk Ejector – Another Small Update (1.1.2)

61 Comments News

I’ve just released another update to the USB Disk Ejector. Its a minor update and fixes a bug introduced in the previous version. If a computer had a network drive that was inaccessible then the program would produce an error message and wouldn’t show any USB drives. Version 1.1.2 fixes this.

Many thanks to Michael Carman and Victor Rades for reporting and helping me fix this error.

Download it here.

Tags: ,
written by
The author didn‘t add any Information to his profile yet.
Related Posts

61 Responses to “USB Disk Ejector – Another Small Update (1.1.2)”

  1. Paulo says:

    Hi,
    Thanks for the program.
    Could you provide the source code or localization for this program ?
    Great job

  2. bgbennyboy says:

    Paulo: Source is on my site, localization is on the ever-expanding todo list.

    Basile: Its a good idea, someone just needs to provide/suggest an appropriate icon, I’ve looked through my icon collection and there isnt a decent ‘tick’ icon that fits in with the rest of the program.

  3. Gabriel says:

    Hi all- was hoping something could be worked in for an eSATA drive? Just a hope!

    Thanks :)

  4. G.R.Arvind says:

    Your USB Disk Ejector 1.1.2 has some fixes.But,When I copy it to my USB drive and run with /REMOVETHIS command ,it says

    “Could not write to windows temp dir
    The Program will now exit.”

    Please fix this issue.

  5. bgbennyboy says:

    G.R.: That means that for whatever reason the temp folder on the computer you’re trying to run it on isn’t writeable.

    The only other possibility is that USB_Disk_Eject.exe already exists in your temp folder and cant be overwritten. Its very unlikely but it has been reported once before when someone had the temp folder remapped.

  6. Brent says:

    Hey great program! Just wanted to note a problem I encountered. I copied the program to my usb flash drive and created a batch file to run it. However, if i remove the drive then add the drive and then try to remove it a second time I get an error. The error says that the Temp file USB_Eject_Cleanup.bat already exists and can’t be replaced. I fixed my problem by using the following batch file:

    @echo off
    del “%TEMP%\USB_Eject_Cleanup.bat”
    USB_Disk_Eject.exe /REMOVETHIS

    I’m running WinXP Media Center as an administrator.

    -Brent

  7. bgbennyboy says:

    Thanks Brent, thats a weird one.
    When you use /REMOVETHIS – the program copies itself to the temp dir, creates a bat file to run the program in the temp dir, launches the bat file and closes. The bat file should delete itself when its run, so its a bit odd that its still hanging around.
    Thanks for letting me know about this.

  8. Nile says:

    I encountered the “Could not write to windows temp dir The Program will now exit” error and identified the cause.

    The problem is the way USB_Disk_Eject.exe copies itself to the TEMP directory when you use the /REMOVETHIS parameter. If you have marked USB_Disk_Eject.exe as a read-only file, it copies itself to the TEMP directory as a read-only file…and the batch file it creates can’t delete the .exe when it tries to clean up

    Just remove the read-only attribute on USB_Disk_Eject.exe and delete the temporary copy in the %temp% directory and the problem goes away.

    bgbennyboy can fix the problem by ensuring Windows writes the files to the temporary directory as read/write.

  9. Giovanni says:

    dear all,
    i have a small problem. I can not understand how and where you enter the Optional command line.
    Please send me the detailed information for to use this feature.
    Tank you for all.
    Best regards

  10. Steve-O the Devo says:

    Sometimes the batch files written above will not work but I have a way for it to work always.

    @echo off
    cls
    Echo Ejecting This USB Device.

    :chkexe
    if exist %temp%\USB_Disk_Eject.exe goto delexe
    goto chkbat

    :delexe
    echo Deleting Previous USB_Disk_Eject.exe from Temp Folder
    if exist %systemroot%\system32\attrib.exe %systemroot%\system32\attrib -r -h %temp%\USB_Disk_Eject.exe>nul
    del %temp%\USB_Disk_Eject.exe /f /q>nul

    :chkbat
    if exist %temp%\USB_Eject_Cleanup.bat goto delbat
    goto prog

    :delbat
    echo Deleting other files from Temp Folder
    if exist %systemroot%\system32\attrib.exe %systemroot%\system32\attrib -r -h %temp%\USB_Eject_Cleanup.bat>nul
    del %temp%\USB_Eject_Cleanup.bat /f /q /ah >nul

    :prog
    Echo .
    Echo Please wait for message to remove…
    USB_Disk_Eject.exe /REMOVETHIS /CLOSEAPPSFORCE /SHOWEJECT

  11. bgbennyboy says:

    Steve-O: Thanks for that.
    It shouldn’t be necessary for anyone using one of the newer versions though as the files are now copied to the temp folder with the correct read/write attributes.

Leave a Reply

5.30415415764