Autorun does not execute cmd file

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.
1 answer Last reply
More about autorun execute file
  1. try with adding this line :
    ShellExecute=PSMenu.cmd

    and check your batch script manually for errors or post the script here.
Ask a new question

Read More

Configuration Command Prompt USB Drive Windows XP