windows:scripting:cmd_autorun

Differences

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


windows:scripting:cmd_autorun [2019/10/31 09:06] (current) – created - external edit 127.0.0.1
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>