You are here

Safely Remove Drive from the Launcher menu

17 posts / 0 new
Last post
PlayWithFire
Offline
Last seen: 16 years 10 months ago
Joined: 2008-01-19 02:03
Safely Remove Drive from the Launcher menu

I got my 8GB thumb drive, and started filling it with portable apps. I would love to have an option to remove the drive directly from the tray menu.
Can someone tell me if there's a batch file that i can write to do that?

Simeon
Simeon's picture
Offline
Last seen: 10 years 2 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Its a little difficult

to accomplish because if you run the batch file from your usb drive you cant eject it because its still in use (by the batch file trying to eject it)...
So you'd have to copy the batch file into your RAM and run it from there and have it delete itself after run.
U3 gets around this problem by leaving a file on your PC. But we wont do that so its more work.
I don't know if anyone is still working on something like that. Search the forums for more info as I think we've had people discussing that topic a couple times.

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

digitxp
digitxp's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2007-11-03 18:33
Soo...

I'm guessing you want an ejectscript that runs in the tray.

Insert original signature here with Greasemonkey Script.

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

It is called ejectscript and is posted on this forum...

Now repeat after me...
I should search before post
I should search before post
I should search before post
I should search before post
I should search before post

Smile Smile

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

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

Ok, before Simeon protest that I send people to search but never give real help... what you're looking for is here -> https://portableapps.com/node/7993

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

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 31 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
New Users

As a reminder, please assume no ill intent or laziness on the part of new users. Some may be new to forums in general and unfamiliar with searching. This is an 18 hour old user, so they shouldn't be lectured. A response answering their question and a gentle prod about searching in the future is far more appropriate.

Remember, if you see a post and you can't respond without being angry or talking down to a user, it's better to simply not respond.

Sometimes, the impossible can become possible, if you're awesome!

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

was trying to be funny... did you see my smileys?? Smile

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

PlayWithFire
Offline
Last seen: 16 years 10 months ago
Joined: 2008-01-19 02:03
Thank you guys And sorry

Thank you guys
And sorry about not searching, i am usually better about this stuff. It was kinda late, and i as being lazy.

PlayWithFire
Offline
Last seen: 16 years 10 months ago
Joined: 2008-01-19 02:03
Well, i still can't figure

Well, i still can't figure it out. I spent the last two hours searching, and i give up. I really don't feel like wasting any more time on this, so i would just like to log this as a request to build this straight into the application launcher (maybe next to the close button)
Thanks!

rab040ma
Offline
Last seen: 5 months 2 weeks ago
Joined: 2007-08-27 13:35
Did you try the little

Did you try the little program in Aciago's post, above?

If you are looking for something that adds a button to the PAM, that isn't going to happen until a future version. But one of those little helper programs could be added to the menu of applications.

MC

digitxp
digitxp's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2007-11-03 18:33
I think

he wants one that runs from the system tray, and when you click on it, it runs the ejectscript. I be someone can make it (not me Sad , I can barely master visual basic).

Insert original signature here with Greasemonkey Script.

PlayWithFire
Offline
Last seen: 16 years 10 months ago
Joined: 2008-01-19 02:03
i have tried that, but that

i have tried that, but that didn't unmount the drive
i don't mind making it an app in the menu, but i just can't get it work

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

use ejectscript on PStart (I quited using PAM until next release), with the option to run it on exit PStart and it works...

What the App do is to close/kill every app running from your PDrive and then your "safely remove hardware" window pops up... what else do you want?

There is another one called close all, but I really don't use it too often, just closes every opened window...

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

PlayWithFire
Offline
Last seen: 16 years 10 months ago
Joined: 2008-01-19 02:03
maybe i am being too

maybe i am being too demanding, but i actually want it to unmount the drive

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

But I think I remember something like that in a cmd switch of ejectscript... and I think that there is a PAM Mod that do that... search and read the documentation about PAM MODs

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

SmithTech
SmithTech's picture
Offline
Last seen: 2 years 8 months ago
Developer
Joined: 2006-11-24 18:06
PAM Mod's & RemoveDrive

The R31 and SmithTech Portable Menu Mod's both support the ejectscript.exe in the forums, however in my testing it only calls the safely remove api window and you still have to click the drive and the button although I may be missing something.
You can also google RemoveDrive.exe. I've gotten permission from the author to include it with my menu, just haven't gotten around to doing it.
The nice thing about RemoveDrive.exe is that it will keep trying to eject the drive if it fails at first because apps are still closing.

"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)

PlayWithFire
Offline
Last seen: 16 years 10 months ago
Joined: 2008-01-19 02:03
Let me just blame this on

Let me just blame this on laziness, and give up on this. I am sure that if i spend a couple hours searching, i could find a good solution, but i can take a few extra seconds and remove it manually.
I would LOVE to see an eject button right in the PortableAppsMenu. I hope it will be included at some point.

Log in or register to post comments