/ Published in: Other
A tip to automatically run a batch file when start a Windows Command Prompt (aka DOS window)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
[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.