By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,343 Members | 925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,343 IT Pros & Developers. It's quick & easy.

getting shortcut Arguments in vb.net

P: n/a
Hi
I have an application that get all sorts of file from openFileDialog and run them.
the problem is:
if i want to take a shortcut with Arguments, something like this:
"C:\Program Files\Call of Duty\CoDMP.exe" restart"
I cannot get the arguments and then the program will start with out it`s arguments.
any idea?
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

Take a look at environment.getcommandlineargs

Dim strArgs() As String = Environment.GetCommandLineArgs

For Each s As String In strArgs

Debug.WriteLine(s)

Next

Ken

--------------------

"omer_ooo1" <om*******@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Hi
I have an application that get all sorts of file from openFileDialog and run
them.
the problem is:
if i want to take a shortcut with Arguments, something like this:
"C:\Program Files\Call of Duty\CoDMP.exe" restart"
I cannot get the arguments and then the program will start with out it`s
arguments.
any idea?
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.