User Tools

Site Tools


windows:scripting:cmd_autorun

Auto run a script when openning CMD

|Registry
reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun ^
  /t REG_EXPAND_SZ /d "%"USERPROFILE"%\init.cmd" /f
windows/scripting/cmd_autorun.txt · Last modified: 2017/08/10 11:00 (external edit)