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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to 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??



Sponsored Link
Ads by Google

Response Number 1
Name: Ed in Texas.
Date: March 5, 2009 at 21:16:02 Pacific
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.


0

Response Number 2
Name: raygate
Date: March 6, 2009 at 23:54:27 Pacific
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


0

Response Number 3
Name: nickcorin
Date: March 8, 2009 at 12:08:00 Pacific
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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


Sponsored links

Ads by Google


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