Useful commands in Windows
Run a batch file everytime a command prompt starts:
reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun /t REG_EXPAND_SZ /d x:\cmd_init.bat /f
To delete:
reg delete "HKCU\Software\Microsoft\Command Processor" /v AutoRun