Eureka Moment Wiki

One eureka moment at the time

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

Discussion

Enter your comment:
F T B O L
 
windows/scripting/cmd_autorun.txt · Last modified: 2019/10/31 09:06 (external edit)