

There are plenty of tutorials for writing Batch files on the web, but for this tutorial, here are a few basic items you may want to take into account:ġ. For example, the following script would first add a registry file into the windows registry and only then run Zoom Player in fullscreen regedit.exe /s mysettings.reg By setting an Auto-Run script to run a batch file instead of the Zoom Player executable, you can have multiple commands executed. You can download this sample file here (extract the ZIP file into the UFD main directory).īatch files are basic Windows scripting files allowing you to execute multiple programs/commands in sequence.

This file indicates that Zoom Player was installed to the "ZP" directory on the UFD.

The third line is which program to run when the UFD is inserted. The second line is a text description that will show up on Windows XP's pop-up dialog when a new device is inserted. The first line is an indicator this is an auto-run file, leave it as-is. The content of this file has three lines: To create an auto-run script, you need to create a file by the name of "autorun.inf" in the drive's main (root) directory. Windows support a simple script file which can be run automatically when a UFD drive is inserted (under Windows XP you may be prompted with a dialog asking you what to do and the first option on this dialog will be to run the program on the device, which is our script). Here is my autorun.inf file that I have on root directory (no folder) right next to PStart.
