You are here

Bringing back a really old concept...

8 posts / 0 new
Last post
digitxp
digitxp's picture
Offline
Last seen: 12 years 6 months ago
Joined: 2007-11-03 18:33
Bringing back a really old concept...

How could we set up maybe the menu so that on unplug (yeah, that's right, no silly Safely Remove) the whole menu closes every single app that was running off the flash drive (I think this is one of the few high points of U3)?

I know I've tried it before, without much luck (checking every 10 seconds to see if a file exists isn't exactly good usage of memory). I'll give a prize to whomever can come up with a proof of concept :P.

John T. Haller
John T. Haller's picture
Online
Last seen: 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Got It

I already have this working in test and will debut soon.

BUT - Unplugging unsafely is exceedingly DUMB and will cause errors in anything that was being written to the drive at the time, possibly corrupting or killing your whole drive.

So it'll be better to click EJECT in the menu (which will gracefully close down all your apps and then eject the drive).

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

OliverK
OliverK's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-03-27 15:21
Unplugging unsafely is

Unplugging unsafely is exceedingly DUMB

LOL!

So it'll be better to click EJECT in the menu (which will gracefully close down all your apps and then eject the drive).

Is this also working in test? I don't think it works right now . . . .

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

digitxp
digitxp's picture
Offline
Last seen: 12 years 6 months ago
Joined: 2007-11-03 18:33
Either Way

I'm using EjectUSB for the eject function. It works wonderfully. On occasion it did try to close some other apps, but it still does the job for me, and does it well. It even lets you blacklist and whitelist which programs to close. It's written in AHK.

That, and the eject thing is indeed pretty dumb, but laziness is stronger than stupidity :P.

Insert original signature here with Greasemonkey Script.

imag2
Offline
Last seen: 13 years 2 months ago
Joined: 2008-10-16 00:18
John, this may be an

John, this may be an exceptionally dumb question... but if you happen to be running PA.c from a directory on your host OS drive, and manage to hit that "eject" button, will it try to eject the drive on which your OS is resident? Or do you have some safety mechanism in place to prevent that sort of accident?

- M.

John T. Haller
John T. Haller's picture
Online
Last seen: 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Depends

It depends. It will not if it's running from the drive where your local windows directory or program files directory lives.

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

imag2
Offline
Last seen: 13 years 2 months ago
Joined: 2008-10-16 00:18
Should be good then. On my

Should be good then. On my system it is running from C:\PortableApps, so both C:\Windows and C:\Program Files should prevent such accidents.

Stevoisiak
Stevoisiak's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2008-02-05 11:22
Really good idea

Really helpful, considerintg sometimes drives flash off for a brief second.

I also had one idiot unplug my External Hardrive for fun when I had 4 apps up. He then asked if he could do it again. -_-

I hate idiots like him.

Simplifying daily life through technology

Log in or register to post comments