Return to Snippet

Revision: 65285
at November 15, 2013 03:04 by tedg


Initial Code
[Assume the console is to be started by clicking a shortcut to cmd.exe]

1. Right click the shortcut, and select Properties
2. On the Command Prompt Properties dialog, select the Shortcut tab.
3. On the Shortcut tab, locate a field labed Target:. add " /u /k path-to-bat " after "...cmd.exe", where path-to-bat here should be replaced by the path to the batch file to be automatically executed.

Initial URL

                                

Initial Description
A tip to automatically run a batch file when start a Windows Command Prompt (aka DOS window)

Initial Title
How to make a Windows Command Prompt (aka DOS window) automatically run a batch file at start?

Initial Tags

                                

Initial Language
Other