Created
May 23, 2013 03:37
-
-
Save hidekuro/5632601 to your computer and use it in GitHub Desktop.
実行したユーザの環境において、%UserProfile%直下にautorun.cmdが
あれば、コマンドプロンプトの起動時に実行するようにするレジストリ登録のワンライナー。
http://goo.gl/V7QrQ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor" /v AutoRun /d "@ECHO OFF & IF EXIST \"%HOMEDRIVE%%HOMEPATH%\autorun.cmd\" \"%HOMEDRIVE%%HOMEPATH%\autorun.cmd\" & ECHO ON" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment