You are here

USB eject reminder

7 posts / 0 new
Last post
philwaud
Offline
Last seen: 16 years 10 months ago
Joined: 2008-04-06 17:00
USB eject reminder

Hi all

Ive been looking for a way of displaying a message to remind me to unplug my portable drive when I logoff. I know from the numerous messages all over the web that i am not alone in this quest!

Ive had an idea, its not quite there yet but it may bear some fruit!

Create a new web page, edit it so the html reads something like this:-

Check Portable drive<...end of="" code="">

Save the page to your portable drive. If you load the page, it should make itself very small (it does), then move so its actually off your screen (it doesnt at the mo!)

OK, so if you open the page from your portable drive, it will open then move out of the way. When you go to eject your portable drive, the web page will close and display a reminder telling you to unplug your drive.

If you get the page to load automatically when you open your portable drive and you have just about cracked it!

Its not working yet, but do you clever peops think the idea has any chance of working?

digitxp
digitxp's picture
Offline
Last seen: 13 years 5 months ago
Joined: 2007-11-03 18:33
End </code>

You need to put a <code>.
Anyway, it's not feasible with anything like HTML or JavaScript.
I think you'll have to make a batch file that you click to log off, that tells you to unplug your USB first.

Insert original signature here with Greasemonkey Script.

Nathan9222
Nathan9222's picture
Offline
Last seen: 3 years 4 months ago
Developer
Joined: 2007-12-06 22:35
here is something that could help

here is something that could help if your only going to use your usb on your computer or an admin computer.

Const DriveTypeRemovable = 1 
Set oFS = Wscript.CreateObject("Scripting.FileSystemObject") 
Set oDrives = oFS.Drives 'Loop thru A-Z. If found, exit early. 
For Each Drive in oDrives 
If Drive.DriveType = DriveTypeRemovable Then
If Drive.DriveLetter  "A" Then
Wscript.Echo "Don't forget your thumb drive! " + Drive.DriveLetter
End If
End If 
Next

Put that in a notepad, save it as "Usb remider.vbs" without the quotes then save it to or copy it to "C:\WINDOWS\System32\GroupPolicy\User\Scripts\Logoff" this is for windows Xp.
Then go to run, then type in "gpedit.msc" hit enter
In User Configuration -> Windows Settings -> Logoff, press the Add Script button and select the Usb reminder.vbs file.

Now if you want to use this on more than one computer you could make a batch file to delete the script, but im sure somebody knows an easier way. Hope this helps, it will popup when you logoff the computer.

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

David Dixon II
David Dixon II's picture
Offline
Last seen: 3 years 1 week ago
Developer
Joined: 2007-06-11 22:54
.

digitxp's title looks weird. did u end the code? typing this responce the font is different.

Na na na, come on!

bitwise
bitwise's picture
Offline
Last seen: 4 years 11 months ago
Joined: 2008-03-13 13:18
what about...

Is there any way to add something to the 'X' button or the Exit of Portableapps menu that will either remind you or maybe even eject the device auto-magically (of course you would need a setting to turn this on)?

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

It is called ejectscript, search for it on this forum... 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

bitwise
bitwise's picture
Offline
Last seen: 4 years 11 months ago
Joined: 2008-03-13 13:18
figures

It took me a little bit to find it but I did...

https://portableapps.com/node/7993

Log in or register to post comments