There is a special Launcher.exe tool that automatically runs any .exe or .lnk file found in an AutoRun folder on each Storage Medium. This can be used to autorun your application. To use this feature, create a folder named "AutoRun" under FlashDisk folder, put your application in it. Now, the application will run at each startup. This feature also works on all removable media. You can create an AutoRun folder on a USB Stick, put in your application and it will be automatically launched every time you insert that USB Stick.
Please check out our AutoRun tutorial video for a step-by-step guide to using this feature.
The Launcher.exe is able to handle Files in the AutoRun folder with the following extensions:
To launch a .bat (Batch File) on other BSPs create a .lnk (shortcut) file with contents as below:
48#"\windows\cmd.exe" /c "\directory\yourBatch.bat"
Notes:
To disable the AutoRun feature, see how to disable the launcher.
You can also use the registry to automatically start programs. For more information, check this MSDN article.