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

windows:scripting:cmd_autorun [2017/08/10 13:00]
windows:scripting:cmd_autorun [2019/10/31 09:06] (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>​