To make Command Prompt (CMD) automatically run a Batch File when it starts, Open regedit (Start, Run, regedit) and locate the following key-
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
and change the Value to the File Location of the Batch file you wish CMD to run.
Note: If the Autorun Value Doesn't exist Just Create it as a String Value.
HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
and change the Value to the File Location of the Batch file you wish CMD to run.
Note: If the Autorun Value Doesn't exist Just Create it as a String Value.