getting shortcut Arguments in vb.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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

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

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top