You are here

Eject usb

10 posts / 0 new
Last post
Gamer239
Offline
Last seen: 16 years 8 months ago
Joined: 2007-04-15 00:04
Eject usb

does windows eject all media like flash drives on logff?

nocr
nocr's picture
Offline
Last seen: 15 years 4 months ago
Joined: 2007-05-04 11:47
I may be wrong, but if you

I may be wrong, but if you turn off your computer, all removable drives are ejected.

════════
PAM > U3

Please Make TiLP Portable

Patrick Patience
Offline
Last seen: 4 years 4 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Well.

As nocr said, turning off the computer will most likely eject all media, but they're safe to remove no matter what, because the machine is not active, therefore no processes are running. However, when you logoff the machine, your current processes in your profile will be terminated, even the ones running from the drive, but your device may still be in ready function by the computer. I'm not too sure.
_____________________________
Wow, that signature totally got old.

Gamer239
Offline
Last seen: 16 years 8 months ago
Joined: 2007-04-15 00:04
well

i was just wondering because i have been creating a script in auto hotkey and can't seem to find a method that ejects the drive. i have created a script that when you press escape it automatically asks if you want to shutdown, logoff, or do nothing,and it automatically exits PAM. wehm you log off you don't have the time to eject, thats why i was wondering.

Patrick Patience
Offline
Last seen: 4 years 4 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Hmm...

Well I'm sure someone more knowledgeable than me can answer that for you.

And while we're on this venereal topic, do you, or does anyone else know what Windows executes to shutdown the computer? I found "shutdown.exe" under WINDOWS I think, or it may have been system32, but when I click it nothing happened, is this the right executable? Or is their command line parameters to go with it?
_____________________________
Wow, that signature totally got old.

Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
I googled and found

this and this.
Hope it helps.
“Science is the belief in the ignorance of the experts” - Richard P. Feynman

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 7 years 6 months ago
Joined: 2006-11-18 10:26
shutdown.exe is a command line app...

...and therefore won't do diddly if you click on it except flash a black window on the desktop...you have to run it in a command prompt window.

Also, most all MS command line apps give you help with the /? switch.

start -> run -> cmd.exe -> [enter]
c:\windows\shutdown.exe /?

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Patrick Patience
Offline
Last seen: 4 years 4 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Thanks.

And thank you too Simeon.
_____________________________
Wow, that signature totally got old.

Gamer239
Offline
Last seen: 16 years 8 months ago
Joined: 2007-04-15 00:04
boot up cmd and type

boot up cmd and type "shutdown"(without the quotes). it gives you all the options on how to shutdown your computer.

calm_observer
Offline
Last seen: 16 years 6 months ago
Joined: 2007-06-24 16:59
Try removeDrive.exe

it worked for me. you can find a discussion here https://portableapps.com/node/639 they have other suggestions, but i've not tried them.

Log in or register to post comments