1. Home
  2. Computing & Technology
  3. Delphi Programming

Help! Lost USB Toolkit
Fancy Delphi Application Contest Entry #16 by Richard Haven

By Zarko Gajic, About.com

Help! Lost USB Toolkit - Fancy Delphi Application Contest Entry #16

Help! Lost USB Toolkit - Fancy Delphi Application Contest Entry #16

"Omnia mea mecum porto" or "All that is mine I carry with me". Is all that located on a USB stick?
What if you lost it? You hope someone will return it to you? But how will they know who the stick belons to?

An idea: create a simple application located on your USB, make it run as a default option when the stick is inserted. If the stick is found the application displays a message containing your address and a "please send me my stick" message.

A great idea for the Fancy Delphi Application Contest ;-)

Rate this FDAC Entry!

Help! Lost USB Toolkit

"Help! Lost USB Toolkit" was inspired by Daily Cup of Tech's application Help!. This version is smaller and starts a notification email.

On the root of a USB drive, create an autorun.inf file as follows (assuming exe is named "HelpLostUSB.exe")

[autorun] icon=HelpLostUSB.exe open=HelpLostUSB.exe action=Help! I'm Lost! label=Help! I'm Lost! shell\open\command=HelpLostUSB.exe shell\open=Help! I'm Lost!
Optionally add a 'readme.txt' file with the text you want to appear in the message box. If that text has an email address in it, this application will try and launch a mailto: for that address.

Note that this application does not have to be in the root, just the autorun.inf and the readme.txt files (adjust the values above).

To avoid the message, just open the drive without auto-running it. Or, hold down the Shift key.

"Help! Lost USB Toolkit" was submitted by Richard Haven.

Do you have a FDA(C)? Submit your Delphi code to the Fancy Delphi Application Contest.

Zarko Gajic
Guide since 1998

Zarko Gajic
Delphi Programming Guide

Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Source Code Projects
  5. Help! Lost USB Toolkit - Fancy Delphi Application Contest Entry #16

©2009 About.com, a part of The New York Times Company.

All rights reserved.