Skip to content

Instantly share code, notes, and snippets.

@rohinomiya
Created June 19, 2012 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohinomiya/2955269 to your computer and use it in GitHub Desktop.
Save rohinomiya/2955269 to your computer and use it in GitHub Desktop.
AutoHotKeyで、コマンドライン引数を取得するサンプル ref: http://qiita.com/items/7ee04ffc03721559e94d
; コマンドライン引数を取得するサンプル
ArgCount=%0%
if(ArgCount==0)
{
MsgBox [使用法] %a_scriptname% [files..]
ExitApp
}
Loop, %ArgCount%
{
Arg := %a_index%
MsgBox % Arg
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment