EjectUSB

EjectUSB
Version 1.3
Designed to be a simple utility to close all programs running from a specified drive or folder and then attempt ejection if a drive was specified. Extended functionality includes flushing the file cache, closing Explorer windows and removing registry entries and Recent Document shortcuts referencing the specified drive or folder.

Documentation and an example configuration file are included in the ZIP. The source code is available as a separate download.

TrueCrypt and combination flash card / flash drives support will be made available via configuration files after sufficient testing has been conducted.

See EjectUSB in action!
» Watch the flash video

Release Version 1.3:
» Download EjectUSB (252 kilobytes, 102723 downloads)
» Source Code (21 kilobytes, 29331 downloads)

Change Log:
Version 1.3
- Bug fix: Program closing on Win9x works again (was broken in 1.2).
- Bug fix: Fixed issues on Win9x when running EjectUSB from a drive's root folder.
- Improvement: Implemented hybrid batch scripting. This provides theorhetical support for TrueCrypt and combination flash card / flash drives as well as conditional operations.
- Improvement: EjectUSB can now interface with EjectMedia.exe to eject flash cards / CDs.
- Improvement: Implemented support for Subst.
- Addition: Added DoNotSubst and NoRedirect settings to the configuration file format.
- Addition: Added /nobat command line argument to disable use of the hybrid batch file (if present). Meant to be used within the hybrid batch file if starting another instance of EjectUSB to prevent infinite loops.

Version 1.2 (4933 downloads)
- Bug fix: Improved handling of relative paths (\ and ..).
- Improvement: Implemented API-based ejection.
- Improvement: Implemented file cache flushing. Requires admin privileges.
- Improvement: EjectUSB can now interface with Sync (from Sysinternals) to flush the file cache (instead of using its own internal file cache flushing function). Requires admin privileges.
- Improvement: Improved command line argument parsing; drive letter or folder path no longer are required at all and no longer must be the first command line argument.
- Improvement: Efficiency improvements related to DLL calls.
- Addition: Added DoNotFlush and NoEjectAPI settings to the configuration file format.
- Change: RemoveDrive.exe is called with the -L switch to loop until successful ejection. This can be aborted by closing the RemoveDrive.exe console window.
- Change: DevEject.exe is now launched hidden.
- Change: Added current version number to EjectUSB.exe version info.

Version 1.1 (3413 downloads)
- Bug fix: Improved ejection capability via EjectUSB's own internal ejection routine.
- Bug fix: Improved command line argument and input parsing for handle.exe; there were some formatting differences between the output on Win9x and WinXP.
- Bug fix: TimeToWait is now a maximum per ''phase'' rather than per program; in rare cases EjectUSB could wait for multiple minutes on closing programs with the default TimeToWait value of 5 (seconds).
- Bug fix: Cleaning up dead tray icons was triggered by faulty criteria; in simple terms, dead tray icon cleanup was occuring when it didn't need to (wasting up to 1 second).
- Improvement: Minor efficiency improvements related to the previous two changes.
- Improvement: EjectUSB can now interface with Unlocker to close open file handles; simply UniExtract the Unlocker installer and put Unlocker.exe and UnlockerDriver5.sys in the same folder as EjectUSB. Unlocker requires admin privileges and doesn't work on Win9x.
- Improvement: Added a FAQ section to the documentation.
- Change: Slight change to the EjectUSB logo.
- Change: Separated the source code into its own ZIP file. Source code for EjectUSB will always be released with each version of EjectUSB.

Version 1.0 (1695 downloads)
- Initial release.

[ 20 July, 2008 ] • [ William Hedrick ]

If you enjoyed the site, please consider donating to a charity in our name.
Right now PAR is supporting a Crohn's disease fundraiser.

Comments

Perfect tool for my pen drive ;)

Thanks
[ 14 June, 2008 ] • [ Dangu ] • [ 10:20:54 ]

The program is not good!
Please work for it!!
[ 14 June, 2008 ] • [ Ciccioformaggio ] • [ 12:25:51 ]

@Ciccioformaggio

Please give some constructive criticism, like what exactly you found that didn't work well. What you just said doesn't help the developer and will not get your problem fixed.
[ 14 June, 2008 ] • [ m-p{3} ] • [ 19:49:52 ]

nice program
[ 15 June, 2008 ] • [ martik ] • [ 01:59:54 ]

No windows vista home premium dutch, the programs that are running from the usb drive are closed , so that works fine. But the drive doesn't seem to get dismounted from the OS.
[ 15 June, 2008 ] • [ m4rc0 ] • [ 05:11:21 ]

This Is Great.... I was looking for a App like this that was not running all the time and I could use to eject my Ipod......thx
[ 15 June, 2008 ] • [ Wid ] • [ 19:57:03 ]

If EjectUSB isn't reliably ejecting your drive, please feel free to leave a message here stating as much and include the version and language of Windows you're using.

Consider downloading one of the ejection helper utilities listed in the EjectUSB documentation; I personally use RemoveDrive (which I've successfully used on XP and Vista). I only rely on EjectUSB's ejection routine when using Win98SE; all of the ejection helper utilities listed in the documentation eject a drive via the Windows API while EjectUSB manipulates Windows' Safely Remove Hardware mechanism via macros.
[ 16 June, 2008 ] • [ William Hedrick ] • [ 02:01:35 ]

Amazing
[ 20 June, 2008 ] • [ Professor ] • [ 05:26:52 ]

Eject USB is excellent portable
[ 20 June, 2008 ] • [ Tani ] • [ 15:10:08 ]

Excellent application. It's the most usefull portable I have on my flashdrive. GREAT GREAT GREAT WORK! Thank you for this!
[ 20 June, 2008 ] • [ f1xxx3r ] • [ 16:49:14 ]

thanks for this great program!
[ 20 June, 2008 ] • [ dude ] • [ 21:52:54 ]

nice work , i use it , but in windows vista after run this software some process display on screen like send watch icon dispaly in notification area this is good
but also my moniter screen blank for some neno seconds.

if you hide some process .
i think this is best software after it

thanks for this free software
[ 22 June, 2008 ] • [ ashish ] • [ 04:15:59 ]

IS VERY NICE

WHAT CAN I DO WITH FOLDER Source Code?
CAN WORK Eject USB WITHOUT » Source Code?
[ 05 July, 2008 ] • [ TAN ] • [ 06:47:47 ]

This is great. I would love to see support for truecrypt container drives. i.e. Shutdown all applications running in Truecrypt mounted drive, unmount truecrypt volume, and exit.
[ 05 July, 2008 ] • [ gig ] • [ 07:44:54 ]

@TAN, You do not need the source code for EjectUSB to work; it's there so you can ''compile'' it yourself if desired.

@gig, I'll look into TrueCrypt support. I don't expect it to be too difficult to implement.
[ 05 July, 2008 ] • [ William Hedrick ] • [ 08:43:06 ]

Very nice app!

I am having a small usage problem with it. At home I use a card reader and at work I use direct usb (I have one of those Sandisk SD with USB cards). On my work machine I want all my apps and directories to close and the drive ejected. At home, I want all the apps and dirs to close, but no ejection to occur. If an ejection does occur on a card reader, the whole card reader is ejected from the system and I have to reboot to get it back.

Would there be a way to make EjectUSB detect if a drive is connected through a card reader and not perform the ejection? (If a usb mass storage device has multiple volumes hanging off of it, it is most certainly a card reader.)

Alternatively, would it be possible to specify an .ini file on the command line? A batch file could then be used to detect the hostname and launch EjectUSB with different .ini files to get different behavior.

Thanks!
[ 05 July, 2008 ] • [ Joe Stadolnik ] • [ 09:05:30 ]

At the very least I'll add command line support for specifying an INI file. I may also add command line setting overrides as well (for example, /noeject would supersede the setting in the INI file so while you'd still need the batch file, you wouldn't need separate INI files).

Currently (v1.2) you could accomplish what you're asking for by making a copy of EjectUSB.exe and renaming it; whatever you name the executable, it will look for a matching named INI file to go with it, so you could have two separate EXEs and INIs in the same folder and a batch file to launch the one for the current situation.

However, I'd like to resolve the issue at its root and add proper support for card readers. I can't give you a timeline on card reader support because I'm not sure how complicated it will be; it might be simple, or it might require a whole seperate routine to eject just a specific card (as opposed to ejecting the entire card reader device).
[ 05 July, 2008 ] • [ William Hedrick ] • [ 09:31:25 ]

I've been using tan earlier version dated 6/6/08. This is with both 98SE & Xp. On the flash drive I use QSEL as application launcher. QSEL is open at all times when the drive is connected, and resides in the system tray. The earlier EjectUSB version took longest to close QSEL off, but it always worked and I was notified I could pull drive.

I upgraded temporarily to version 1.2. It closes everything but QSEL, then finally gives up an says to try again later. After a few tests of this, I finally went back to the 6/6 version of EjectUSB. I very much like the software, and will keep trying newer versions as they come out, but won't throw out old until it performs for me as well.
[ 05 July, 2008 ] • [ Steen ] • [ 16:11:53 ]

Based on that timestamp, you're using EjectUSB 1.0. Is EjectUSB failing to close QSEL on both 98SE AND XP, or just one of them? When you say it ''says to try again later'' do you mean a messagebox pops up telling you that, and again, is this on 98SE, XP, or both? I can't immediately think of a reason 1.2 could be failing where 1.0 works (honestly, changes made should be nothing but improvements) but I will definitely investigate this. I'm familiar with Qsel and will simply test it directly, any further details you can think of would be helpful.

Also, I fully appreciate your, erm, methodology. I always keep a backup of the current working version of a program I'm using when trying out a new version and make sure everything still functions how I want. It drives me nuts when a new version doesn't work for me; I'll do what I can to resolve this. Looks like I've got quite a bit on my plate for version 1.3.
[ 05 July, 2008 ] • [ William Hedrick ] • [ 19:16:03 ]

On further tests, I can't reproduce problem with Xp, but can reproduce with 98SE using two different USB flash drives. Only one gives the pop up error message on not being able to close "The device 'USB Disk' cannot be stopped right now. Try stopping the device again later.", for they are using different drivers.

Rather than go into detail in this thread, which may not be of that much interest to general public, I'm sending the rest of my comment through the Send Message form on your PAR Member Details page where I can add my email address without making it public.
[ 07 July, 2008 ] • [ Stee ] • [ 14:17:55 ]

First tests show Version 1.3 (7/20/08) has apparently fixed my reported problems with 1.2 not closing QSEL. Thanks, now I can quit using 1.0.
[ 20 July, 2008 ] • [ Steen ] • [ 11:01:43 ]

Hello,
Do you have an example of the batch file to unmount a truecrypt partition?
There is nothing included in 1.3 distribution and no documentation!

Cool tool btw!
ty
[ 21 July, 2008 ] • [ joe ] • [ 08:36:48 ]

I'm working on the hybrid batch scripting documentation over the course of this week. I wanted to get 1.3 released since it has a couple bug fixes. Example hybrid scripts and documentation will be added as a separate download when they've been fully tested (which they basically are) and are safe and ready for public use.
[ 21 July, 2008 ] • [ William Hedrick ] • [ 10:45:35 ]

Thanks for the update!
[ 21 July, 2008 ] • [ joe ] • [ 16:22:48 ]

I'm a bit of a software geek. I install dozens of programs every week, but I can't figure out why this program does not work on my XP SP3.

I run it and it just creates an icon in the system tray. Why does it need to be in the system tray if the only option is to "exit"?. Does it have to be run from the command line then?
[ 22 July, 2008 ] • [ frustrated ] • [ 11:56:30 ]

Heh, the answer to that is actually one of the few things in the FAQ:

- My drive hasn't ejected and there's an EjectUSB icon in my system tray, what's wrong?

EjectUSB is repeatedly trying to eject the drive but is failing; click the EjectUSB tray icon and choose Exit, make sure the drive is not in use, and then try again.

Depending on the circumstances, this step (where the icon's in the system tray) can take 10+ seconds. Also, if you're running EjectUSB from a non-ejectable drive and EjectUSB is still trying to eject the drive, that icon will probably just sit there forever (until you exit it).
[ 22 July, 2008 ] • [ William Hedrick ] • [ 13:03:37 ]

I tried 3 versions on 2 machines, and it's never work with me !
[ 24 July, 2008 ] • [ ameer ] • [ 05:38:48 ]

oh, I read now some comments, I am not alone.

This program is NOT work.
[ 24 July, 2008 ] • [ ameer ] • [ 05:41:11 ]

My USB flash was ejected but when I plugged it back in a message came up saying an "unsafe eject was performed and some files may have been lost" or something along those lines. No files were lost but I did have a nervous moment there.

Sandisk 8 GB U3 "Cruzer"
[ 24 July, 2008 ] • [ James Howell ] • [ 06:17:54 ]

Can this be used to disconnect a recalcitrant external hard drive? I have a Seagate 160 GB that my Vista Home Premium refused to let go. I closed every open program and the OS kept telling me to come back later. To safely remove the drive I ended up shutting down the computer. Very inconvenient to say the least.
[ 24 July, 2008 ] • [ Bob Oh Bob ] • [ 11:07:36 ]

It has the potential to work for that Bob. EjectUSB is capable of ejecting an external hard drive, but whether it will solve whatever your particular issue is will simply require testing. At worst, EjectUSB won't be able to eject it either.
[ 24 July, 2008 ] • [ William Hedrick ] • [ 14:10:40 ]

James, a message telling you the drive wasn't safely removed isn't a function of a standard USB drive, so I'm assuming it's a function of the U3 software on your Cruzer. I have a Cruzer lying around somewhere that I can test EjectUSB with and see if I can come up with anything.

If anyone's curious, my primary USB drive is an older 1GB PNY Attache with read-only switch.
[ 24 July, 2008 ] • [ William Hedrick ] • [ 17:23:54 ]

I used this and it worked great until I came to plug my USB drive in the next time and now it isn't recognised. The drive works on my other PC's but no longer on my main one which is very frustrating. Can you help? If not I'm going to have to buy a new drive.
[ 29 July, 2008 ] • [ Jaye ] • [ 23:56:48 ]

A couple things to keep in mind:
- EjectUSB doesn't do anything radical to eject your drive, it follows standards Windows routines for ejecting a drive and is essentially no different than if you used the safely remove hardware dialogs yourself.
- Its registry cleanup doesn't edit or delete any fragile parts of the registry and doesn't leave any entries in invalid states (even if your system crashed during registry cleanup there should be no ill effects).

If one computer isn't recognizing your drive, but other(s) are, it's either a hardware or software issue with the one computer. My first thought would be to check that the USB plug on the computer isn't dirty (it's not unusual for dust/lint/hair to collect in a USB port); you might as well check the USB connector on the drive as well to be sure it's clean.

Next I'd make sure it's not a non-present storage device issue of some sort. You can use DriveCleanup by Uwe Sieber to deal with this automatically:
http://www.uwe-sieber.de/dr...

Beyond that I'll need more information to try and help look for a solution, namely the brand and model of removable drive. I've never encountered this problem before but believe me that I sympathize with you; I'd be livid if my computer stopped recognizing my flash drive.
[ 30 July, 2008 ] • [ William Hedrick ] • [ 01:30:31 ]

Hi , the app sounds like what i need , but i must be missing a point somewhere.
Do i install it on the usb drive itself ?
So far i've extracted the files to a folder i've created in my program files, and placed a shortcut on my desktop, plugged in my usb drive, purposely left a document open clicked the desktop shortcut and nothing happens.
Even clicking the icon directly from inside the program file doesn't provoke a reaction.
I've read the documentation and comments here but i'm still no wiser.
I'm using vista as an admin.

So at the moment i'm thinking i have to install it on every usb drive individually ?
Any help from anybody would be welcome...
[ 30 July, 2008 ] • [ Robert ] • [ 02:51:38 ]

EjectUSB worked perfectly for me .. much faster than Windows safely remove hardware ... but, our virus scanner at work identified it as a trojan and removed it from my machine. Any way to bypass this?
[ 30 July, 2008 ] • [ James ] • [ 03:32:52 ]

@Robert, yes EjectUSB is meant to be put on the removable drive itself and run from there, however, it can be used from a fixed drive (to eject a removable drive) by specifying the removable drive's drive letter in the command line to EjectUSB. For example if the removable drive is drive letter F, you'd run
EjectUSB.exe F
(or EjectUSB.exe F: or EjectUSB.exe F:\)
This could be accomplished via a shortcut or a batch file for example. Hybrid batch scripting provides a mechanism to automatically detect removable drives and so could be used to automate this process (rather than needing a shortcut with a fixed drive letter specified) however it still needs further testing before I release such scripts publicly.

@James, it's a side-effect of EjectUSB being an AutoIt3 script. Do you know the name of the virus scanner your work uses so I can submit a false positive report to them? In addition, I'll be able to test that virus scanner in particular (assuming they have a free trial or it happens to be an AV which I have access to a licensed version of) and see if changes to executable compression can avoid a false positive. If you have any concerns you can visit http://www.autoitscript.com... and peruse the EjectUSB source code to be sure it's clean. That's the downside with false positives, you're sort've guilty until proven innocent if the AV program automatically deletes the program. =/
[ 30 July, 2008 ] • [ William Hedrick ] • [ 21:13:57 ]

Hi, thanks for you suggestions. I've tried the following:-
* Running DriveCleanup
* Uninstalling the drivers.
* Tried plugging the drive into all 7 USB slots in my PC.
The drive is a Trancend Jetflash V90 Classic. It works on every computer I've tried it on apart from the one PC I used it with EjectUSB.
It makes a noise when I plug in the drive and remove it but doesn't show in My Computer. (also after unistalling the drivers it did reinstall then on insertion but still did not show in My Computer)
I've also tried other USB drives on this computer and they work fine.
The PC is only 2 months old.
Let me know if you need any further info.
[ 30 July, 2008 ] • [ Jaye ] • [ 23:14:22 ]

dude
thanx alot
[ 01 August, 2008 ] • [ the crazy jogger ] • [ 16:19:51 ]

Hi William, thanks for your answer, even though it's a bit late on my part, i've been busy doing this and that. Your explanation has helped me understand what's what and why and how to proceed. I'll install it later on in the day on my external drives. Thanks for the software, i'm sure it'll help a lot of people who have this problem. I tip my hat to you :)
[ 04 August, 2008 ] • [ Robert ] • [ 23:21:28 ]

Well done. Always wanted to write this thing.
Thanks!
[ 07 August, 2008 ] • [ Pierre C. ] • [ 04:51:06 ]

Jaye, I had the same problem as you and instructions here:
http://techrepublic.com.com...
solved the problem for me. That link also has a section "People who read this, also read..." that has other similar problems and solutions. I hope one of the solutions there works for you.

William, thanks for EjectUSB, it's been real handy.
[ 07 August, 2008 ] • [ Yonni ] • [ 13:14:52 ]

bonsoir je le voudrais en francaiss.v.p
[ 08 August, 2008 ] • [ guilbeault ] • [ 17:54:14 ]

Great tool!! Is there any way to make it eject faster? It closes all progs fast but it sits there for what seems very long before it shows the "OK to remove" type message. I've tried to turn off the following and it's still slow. Otherwise it's Awesome!
[Settings]
TimeToWait=3
DoNotFlush=1
DoNotClose=0
NoPrograms=0
NoGraceful=0
NoExplorer=0
DoNotClean=1
NoRegistry=1
NoFirewall=1
NoShortcut=1
DoNotSubst=0
NoRedirect=0
DoNotEject=0
NoEjectAPI=0
[ 11 August, 2008 ] • [ Jim ] • [ 07:43:01 ]

@jim
Sorry for the question? According to the FAQ, I guess you can't :-(
Jim
[ 11 August, 2008 ] • [ Jim ] • [ 08:36:32 ]

What's the license? I'd love to use this in the office, but they won't let me unless you explicitly state that it is ok (it works great at home, though - thanks!
[ 11 August, 2008 ] • [ Anne O-nymous ] • [ 23:42:56 ]

Is there a way to put this in the PortableApps launcher?
[ 12 August, 2008 ] • [ dov717 ] • [ 20:04:05 ]

do i need to put deveject in the same folder as the eject usb?
[ 13 August, 2008 ] • [ dude ] • [ 06:51:11 ]

additional question:

do i need to put all the extra app (bold ones) inside ejectusb folder?
currently these are the bold ones that i can see (see below), only unlocker and sync are the two that i put inside ejectusb folder.

EjectMedia.exe
Sync.exe
RemoveDrive.exe
DevEject.exe
handle.exe
Unlocker.exe

what does it mean that it can interfaced? should i put the apps inside the folder?

thanks for the great app
[ 13 August, 2008 ] • [ dude ] • [ 07:11:04 ]

je le veux
[ 13 August, 2008 ] • [ maximebergeron ] • [ 09:16:44 ]

HELP!
Web error of some sort:
http://www.pocketappreview....
is redirected and the re-directed back (loops).
Anywhere else to download?

pjf (at) uoguelph.ca
[ 17 August, 2008 ] • [ PJ ] • [ 09:05:00 ]

looks like the downloads fixed
[ 17 August, 2008 ] • [ jeff ] • [ 09:46:32 ]

Your blog is interesting!

Keep up the good work!
[ 17 August, 2008 ] • [ AlexM ] • [ 16:33:00 ]

I use W98SE and I have two programs which are similar but not identical (one on my hard drive and the other on my USB sticks).

I would very much like to try your program and I would like to ask, should any conflict arise, can I uninstall or delete your program?

I would add that I definitely need my original programs so it is coexistence which matters.

My regards
[ 25 August, 2008 ] • [ Mike ] • [ 10:26:36 ]

Is there a way to add command line switches to the External Utility Support? I was specifically looking at "USB_Disk_Eject.exe /REMOVETHIS /SHOWEJECT" I would like to use this External Utility because it promptly removes the USB drive, but it does not give me a notification when it has been removed.
[ 19 September, 2008 ] • [ MikeT ] • [ 11:01:09 ]

Hello,

i haven't the same ejection on xp and vista...
On vista my usb stick stay lit when she switched off on xp ... I preferred before !
Could it be that even extinguish it with Vista?

thanks for this very good and free app.
[ 30 September, 2008 ] • [ Totoche ] • [ 14:39:10 ]

thakyou
[ 04 October, 2008 ] • [ thanh ] • [ 20:54:22 ]

Hey, this is just great! God only knows how long I have been looking for a little utility like this! Especially my ancient Lexar JumpDrive with the secure partition does not take kindly to suddenly being jerked out of the USB port because nothing in the world will stop it. I have tested EjectUSB several times, and despite the warning messages everything turns out just fine. Thanks so much for making this program available for free!!
[ 05 October, 2008 ] • [ beattheswiss ] • [ 07:14:09 ]

dfsgdfg
[ 07 October, 2008 ] • [ anh ] • [ 01:36:46 ]

toi la anh
[ 07 October, 2008 ] • [ anh ] • [ 01:38:10 ]

Hey, this is just great! God only knows how long I have been looking for a little utility like this! Especially my ancient Lexar JumpDrive with the secure partition does not take kindly to suddenly being jerked out of the USB port because nothing in the world will stop it. I have tested EjectUSB several times, and despite the warning messages everything turns out just fine. Thanks so much for making this program available for free!!
[ 07 October, 2008 ] • [ anh ] • [ 01:38:47 ]

like [ 30 July, 2008 ] • [ James ] • [ 03:32:52 ] reported earlier, mcafee virusscan enterprise + anti spyware module 8.0.0 with 07 oct 2008 virus definitions generates a false positive.

---quote--------------------------------------------------
EjectUSB worked perfectly for me .. much faster than Windows safely remove hardware ... but, our virus scanner at work identified it as a trojan and removed it from my machine. Any way to bypass this?
[ 30 July, 2008 ] • [ James ] • [ 03:32:52 ]
[ 08 October, 2008 ] • [ tony ] • [ 04:29:04 ]

at home I have a decent virusscanner (NOD32), installed it.

this is a beautiful piece of software! thanks a lot!!!!!!!!!

wow, you even thought of a no-eject setting! this is great, now I can close all open apps before firing up my backup program!!!!

thanks again!!!

tony
[ 08 October, 2008 ] • [ tony ] • [ 14:48:50 ]

Also have the MacAfee issue. Detected as a generic.dx trojan. Any ideas?
[ 09 October, 2008 ] • [ foobar ] • [ 07:14:47 ]

Yeh I have the same problem. EVEN bigger issue, as the uni im at runs Macafe, and auto deletes the exe in insertion! grrrrrr!
[ 09 October, 2008 ] • [ relequestual ] • [ 12:46:49 ]

McAfee temporary workaround:

McAfee false positive is related to UPX code, which is opensource compression code. The script wrapped without UPX generates a bigger .exe, but without false positives in McAfee

it is explained in this forum:
http://www.autoitscript.com...

the REAL solution is to:

contact McAfee, and politely inform them their AntiVirus generates false positives. send them the EjectUSB.exe, and point them to this page where they can check the errors, source, contact the author etc.

please DO contact McAfee, they probably wont give much priority on 2 or 3 error reports. more is better in this case!

thanks!
[ 13 October, 2008 ] • [ tony ] • [ 03:55:31 ]

ehm, listed SyncBack in the [exclusions] list but still gets closed.
pstart is closed too btw.

am I doing something wrong?
[ 13 October, 2008 ] • [ tony ] • [ 11:35:27 ]

Hi,

Any Hybrid batch script example available?
[ 15 October, 2008 ] • [ Gig ] • [ 08:44:41 ]

Hi, I'm currently using a Truecrypt volume on a usb drive running geek.menu (a PortableApps fork). geek.menu allows me to configure an ejection application to be run when I click on the eject option but it is only able to run the application once. It is capable of passing both the usb drive and the truecrypt drive to the application as parameters.

My current solution (currently untested due to lack of space) is a batch file (i run this directly from geek.menu, not via ejectusb) which first runs noejectusb.exe x: (renamed copy of ejectusb.exe) with donoteject=1 in the noejectusb.ini to close all the apps on the truecrypt volume, unmount the truecrypt volume using truecrypt.exe and then run ejectusb.exe w: to unmount the usb drive. This takes up too much space since there's 2 copies of the exe and the free space on the actual usb drive isn't enough due to the large truecrypt volume file.

Will it work with just one exe and one ini file with donoteject=1 and then just run ejectusb.exe x: to close apps on the truecrypt volume and then run ejectusb.exe /eject w: to close all apps on the usb drive and eject it? Will this method actually close the apps running on the usb drive and flush it as well?

Or, for the most elegant solution I can think of, is there a way to specify multiple drive letters to eject and have different hybrid batch files for each drive? I'm trying to find a way to call ejectusb.exe directly and give it 2 drive letters like this: "ejectusb.exe x: w:" and let ejectusb.exe close the apps on the truecrypt volume, run a .bat file for the truecrypt volume to unmount it eg: "ejectusbtruecrypt.bat x:" and then do the normal eject stuff for the usb drive.

The drive letters btw may be different and are provided by geek.menu to the eject script/application via command line.
[ 20 October, 2008 ] • [ jaybz ] • [ 22:35:44 ]

thanks
[ 22 October, 2008 ] • [ Nobunaga ] • [ 19:59:58 ]

Hi everyone,

sorry but what is exactly a "hydrid" batch file ?

anyway great app !!!
[ 30 October, 2008 ] • [ BillyBoy ] • [ 04:08:23 ]

well, turns out i don't need the hybrid batch file at all. i have ejectusb.exe and the ini file on both the usb drive and truecrypt volume and i created a .bat file to be run by geek.menu upon clicking the eject button. one thing to note is that the .bat file accepts the host drive letter as the first parameter, and the truecrypt drive letter as the second, the reverse of geek.menu's default, which you can change yourself. i haven't tested it yet, but the .bat file should allow ejecting even if you checked the option to not mount the encrypted volume on the password prompt. the contents of the .bat file is below for geek.menu users who are interested. you could also probably use it for other usb menu software after some or no modifications. enjoy.

contents of eject.bat:
@echo off
if "%1"=="" goto xit
if "%2"=="" goto ejecthost
%2:\EjectUSB.exe
%1:\TrueCrypt\TrueCrypt.exe /d%2 /q /w /s /f
if errorlevel 1 goto xit
:ejecthost
%1:\EjectUSB.exe
:xit
[ 03 November, 2008 ] • [ jaybz ] • [ 21:30:14 ]

sorry, forgot to note that the ejectusb.ini i used on the truecrypt volume has DoNotEject=1
[ 03 November, 2008 ] • [ jaybz ] • [ 21:31:13 ]

Hi William,

Another virus checker identifying EjectUSB as a Trojan is avast! 4.8.

Alec
[ 08 November, 2008 ] • [ Alec ] • [ 05:54:45 ]

desbloqueo de un pen drive
[ 12 November, 2008 ] • [ alejandro ] • [ 15:42:00 ]

My Avast 4 Home is alerted me

File name: http://www.pocketappreview....\EjectUSB.exe

Virus name: Win32:Trojan-gen {Other}

Virus type: Vírus/Worm

VPS version: 081118-0, 2008.11.18

Maybe a valid alert?
[ 19 November, 2008 ] • [ CamelTH ] • [ 00:34:15 ]

Hi,

I have a suggestion for feature :
The possibility to have an other ejectUSB.ini, that we can launch in parameter.
Example : EjectUSB.exe "ejectUSBbis.ini"

It's because i use eject usb for two principal reasons without the same option ...

Thanks
[ 20 November, 2008 ] • [ Totoche ] • [ 07:56:02 ]

Add Comment