Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autorunning\playing a USB flash drive - how?

Status
Not open for further replies.

rdale2

Technical User
Dec 8, 2003
15
US
Hi,

I have one of those USB flash drives, pen drives, whatever... does anyone know if it's possible to set it up to autorun like a CDrom when you pop it in. I tried an Autorun.inf, no go.

Any clues would be highly appreciated! It would be great to open an email client or password manager directly, instead of having to find the file in Explorer, then open...

Again, thanks...

 
I think the problem here is that the autorun inf you have seen on CD's, is part of the data, not the drive.
as you are on the Delphi formum, you could write a Delphi application that monitors the Dongles drive letter for a specified file
e.g with the fileexists function

if fileexists(F:\autorun.txt) then
begin
// your code
end;

this could be done with a thread, or by using an 'onidle' procedure.
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top