You are here

Combined Quit & Safely Remove

6 posts / 0 new
Last post
bencoman
Offline
Last seen: 16 years 9 months ago
Joined: 2008-02-12 21:42
Combined Quit & Safely Remove

For a while now I've thought it would be great if the Quit button on the PortableApps menu would also undock the USB key, instead of requiring a couple more clicks, on the Safely Remove Hardware icon, and then on the drive letter - which if there is a few choices can be awkward to work out.

Anyhow, I bumped into some code (while looking for something else) that might be a good starting point if anyone was interested.

http://www.codeproject.com/KB/system/RemoveDriveByLetter.aspx

Aciago
Aciago's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2007-01-24 14:23
It exist

on PAM Mods and in an independent portable app called ejectscript, there is also a tiny cmd app that performs it but I don't remember the name ATM.

It is all in this forum, just need to search a little.

If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report Biggrin

NeoRame
NeoRame's picture
Offline
Last seen: 4 years 2 weeks ago
Joined: 2007-05-11 09:12
but on the ejectscript you

but on the ejectscript you must self click the "remove usb button", this script on top do it self Wink

Hell was full, so I came back!!!
Sorry for my lousy English!!!

powerjuce
powerjuce's picture
Offline
Last seen: 13 years 9 months ago
Developer
Joined: 2007-09-20 21:34
no u dont

it will do it for you.
i use it all the time.
the only problem is that you have to send it a parameter so you cannot use it through the PAM, but is you use some thing like PStart then it can work for ya.

Please search before posting. ~Thanks

NeoRame
NeoRame's picture
Offline
Last seen: 4 years 2 weeks ago
Joined: 2007-05-11 09:12
lol i use it since it came

lol i use it since it came out and i havent see that??? tztztz.

which parameter i need???? and if they a way to insert to a batch file or whatever and then convert to an exe file? have you any ideas?

greetz NeoRame

Hell was full, so I came back!!!
Sorry for my lousy English!!!

Aciago
Aciago's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2007-01-24 14:23
I use it

on PStart too, but I don't use any command line option because I want to decide when to eject the script, sometimes you have to wait until a "* portable" finish closing before ejecting, and sometimes you want to close but not eject the drive yet... Blum

I think in the last thread about ejectscript there is a better explanation of this, I requested that auto eject function in the past, and somebody convinced me on the contrary... Wink

If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report Biggrin

Log in or register to post comments