autorun & batch help

March 5, 2009 at 11:54:38
Specs: Windows XP
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??

See More: autorun & batch help

Report •


#1
March 5, 2009 at 21:16:02
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.

Report •

#2
March 6, 2009 at 23:54:27
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


Report •

#3
March 8, 2009 at 12:08:00
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.


Report •

Related Solutions


Ask Question