Month:December 2013

Found 5 records. At Page 1 / 1.

VB.net 參數

-
更新於

My.Application.CommandLineArgs.Count    '參數總數
My.Application.CommandLineArgs(數字)    '取得參數

作為筆記,以後方便自己記憶。

Example:

cmd-> x:\123.exe 123

code:My.Application.CommandLineArgs(0)

print:123

cmd-> x:\123.exe 123 456

code:My.Application.CommandLineArgs(0)、My.Application.CommandLineArgs(1)

print:123、456


This entry was posted in General By .