VB.net 參數
No Comments

更新於 2016-02-27 16:49:04

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 Weil Jimmer.

About Weil Jimmer

Hi! Everyone! My name is Weil Jimmer. This is my personal blog. I'm a webmaster of this site. I hope the site will be popular. Now, Let's go! Enjoy gaining more knowledge.
More Details About Me : https://weils.net/profile.php


Leave a message.

Only the first 10 comment will show.