O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reading Command-Line Arguments with My.Application.CommandLineArgs

Applications in Windows can be started in multiple ways. The simplest and most commonly encountered way is by double-clicking a shortcut (for example from the desktop). You can also start any Windows or command-line application directly by typing the name of the executable file at the command prompt or by using the Run command from the Start menu. Many applications let you specify additional options via their command lines. These options control the application’s runtime behavior. For example, you can start Windows Explorer with a drive parameter:

Explorer c:\

This command not only launches Windows Explorer, but it also immediately displays the contents of the root directory on the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required