Computing.Net > Forums > Windows XP > autorun & batch help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

autorun & batch help

Reply to Message Icon

Name: nickcorin
Date: March 5, 2009 at 11:54:38 Pacific
OS: Windows XP
Subcategory: Software Problems
Comment:

Im trying to program an autorun.inf that installs a program when i insert my USB automatically. The problem is that it asks if you want to install it.. is there any way on how to avoid sthat? or automatically say yes??




Response Number 1
Name: Ed in Texas.
Date: March 5, 2009 at 21:16:02 Pacific
+1
Reply:

nickcorin, seems to me you could use an if/then/else statement to evaluate the query string and see if it's the question and take the appropriate action.
HTH.
Ed in Texas.



Response Number 2
Name: raygate
Date: March 6, 2009 at 23:54:27 Pacific
+1
Reply:

Hi nickcorin ...

form a long time and I'm looking for an autorun.inf that installs a program when i insert my USB automatically.

Can u give me the secript of autorun.inf that can run ((eat.exe) for e.g)in drive F (F is my UsB



Response Number 3
Name: nickcorin
Date: March 8, 2009 at 12:08:00 Pacific
+1
Reply:

hi raygate, what you need is the .exe file (eat.exe) in the drive then have a autorun.inf file with the following code:

[autorun]
open=eat.exe
icon=icons/drive.ico
shellexecute=eat.exe
action= Install Program on USB

then when you insert your USB, the autoplay menu should come up and the option saying "Instatll Program on USB" will activate the autorun,a you can customize the text and the icon. Please be aware that this code will makeh your USB icon unknown unless you haven a .ico file in a folder called icons on your USB too.



Reply to Message Icon

Related Posts

See More


Macro to delete rows Playing wmv movies in win...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Google Ads



Results for: autorun & batch help

Batch Help www.computing.net/answers/windows-xp/batch-help/99185.html

Batch Help? www.computing.net/answers/windows-xp/batch-help/177775.html

Batch Help Please? www.computing.net/answers/windows-xp/batch-help-please/178231.html