Many programs in Windows support the use of command-line switches that modify the way the program starts or functions. Microsoft Word, for example, supports an /M switch that prevents autoexec macros from executing at program startup. Most of the console commands (XCOPY, DIR, etc.) also support several switches. It’s easy to add switches to control the way an application starts.
If you’re starting the application from a shortcut, just modify the shortcut to include the necessary switch or parameter.
- Right-click the shortcut on the desktop, in the folder, or even in the Start menu, and choose Properties.
- Look in the Target text, which contains the application-executable path enclosed in quotes. To the right outside the quotes, add the switches or program parameters you want to use. Make sure to add them outside the quotes or you’ll get an error message.
- Close the Properties sheet, and then launch the application from the shortcut to test the switch.