Go Back   Computer Forums > General Computing > Cyber Safety and Computer Security
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 10-30-2008, 02:13 AM   #1
Solid State Member
 
Join Date: Oct 2008
Posts: 6
Default Autorun in USB Drive

Is there anyway to make a USB drive run a batch file when it opens? I tried putting an "autorun.inf" file into the root of the drive and it got the correct icon, but nothing happened when I opened the drive.

My autorun.inf file looked like this:
[autorun]
icon=\OTHER\icon.ico
open=\COMMANDS\opendrive.bat
action=Open drive to view files
shell\info=System Info
shell\info\command=\COMMANDS\start.bat
__________________

ES_Ranger is offline   Reply With Quote
Old 10-30-2008, 04:11 PM   #2
In Runtime
 
lhamil64's Avatar
 
Join Date: Jan 2007
Posts: 398
Default Re: Autorun in USB Drive

I've never really looked into INF files, but im thinking that maybe saying that the "action" should be "open drive to view files" isn't right. have you tried removing that and seeing what happens?
__________________

__________________
--Lee
Website/Blog: http://lhamil64.wordpress.com
lhamil64 is offline   Reply With Quote
Old 10-30-2008, 09:34 PM   #3
Solid State Member
 
Join Date: Oct 2008
Posts: 6
Default Re: Autorun in USB Drive

the action is just what is displayed as what the autorun file is going to do, it doesn't play any important part in it
ES_Ranger is offline   Reply With Quote
Old 10-31-2008, 07:30 AM   #4
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: Autorun in USB Drive

I had a memory stick a while ago, that was VERY clever indeed. I cant remember what the model was, But it emulated a CD Drive, so that it COULD auto-run.
j03 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 05:48 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0