Sign in with
Sign up | Sign in
Your question

Autorun does not execute cmd file

Last response: in Windows XP
Share
June 29, 2012 12:00:29 AM

Hello,
I have created a batch file to run a program. I then created autorun.inf file to execute the batch file and put both the batch file and autorun file at the root of USB drive. I have the following code in the autorun file.

[autorun]
OPEN=PSMenu.cmd
ICON=.\PSMenu\psmenu.exe
LABEL=My Name

When I insert the USB, it does label the drive as My Name and also displays the icon, But it does not execute the batch file.

Any help will be greatly appreciated.

Thanks.
July 7, 2012 10:23:26 PM

try with adding this line :
ShellExecute=PSMenu.cmd

and check your batch script manually for errors or post the script here.
m
0
l
!