• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

Command Line Parameters

When my Windows app is compiled, can I make it so that command line parameters can be read, so for instance if someone typed something like:

"c:\myapp.exe -sometext"

...could I catch the 'somtext' bit inside the program?
1 Solution
in the load of your form

dim test as string = environment.commandline


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now