0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

毎回忘れるVBSの引数取得方法をメモってみた

Posted at

Option Explicit

'引数が無い場合は終了する
If Wscript.Arguments.Count = 0 Then
WScript.Quit
End If

'1番目の引数
WScript.Echo "引数1:" & Wscript.Arguments(0)
'2番目の引数
WScript.Echo "引数2:" & Wscript.Arguments(1)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?