In Windows 7 it is not possible to use the ACTION command and the OPEN command together with USB flash drives anymore. Microsoft has removed this support for security reasons. These commands are still available for CDs and DVDs in Windows 7, but not for USB sticks.
Specifying your own label and icon for the USB flash drive via the Autorun.inf file is still possible, but it is not possible to allow a user to execute a program on the drive via the AutoPlay dialog box. And automatically executing a program on a USB flash drive by turning off AutoPlay and only using AutoRun is not possible either. The OPEN command is not supported at all for USB flash drives in Windows 7. To execute a program the user must open Windows Explorer and manually run the program. Luckily an option to start Windows Explorer is always shown in the AutoPlay dialog so it is easy to start Windows Explorer. But to make it also easy for the user to find your program on the USB flash drive (the program you want the user to start when plugging in the USB stick) you should always place the program on the root folder of the drive and give it a descriptive name such as "StartMe.exe", "Autorun.exe", "Menu.exe" etc. This program file should also be the only executable file in the root folder, otherwise some users might start the wrong program by mistake.More information about the changed behavior for AutoRun and AutoPlay in Windows 7 can be read in the following article on our Internet site: Using AutoRun / AutoPlay with a USB Flash Drive in Windows 7.









