Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


windows:scripting:cmd_autorun

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
windows:scripting:cmd_autorun [2016/12/19 14:28]
tplecko created
windows:scripting:cmd_autorun [2017/08/10 13:00] (current)
Line 1: Line 1:
 +====== Auto run a script when openning CMD ======
 +<code bash |Registry>​reg add "​HKCU\Software\Microsoft\Command Processor"​ /v AutoRun ^
 +  /t REG_EXPAND_SZ /d "​%"​USERPROFILE"​%\init.cmd"​ /​f</​code>​
  
windows/scripting/cmd_autorun.txt · Last modified: 2017/08/10 13:00 (external edit)