15.1. Access Runtime Environment Information
You need to access information about the runtime environment and platform in which your application is running.
Use the members of the System.Environment class.
How It Works
The Environment class provides a set of Shared members that you can use to obtain (and in some cases modify) information about the environment in which an application is running. Table 15-1 describes some of the most commonly used Environment members.
|CommandLine||Gets a String containing the command line used to execute the current application, including the application name. (See recipe 1-7 for details.)|
|CurrentDirectory||Gets and ...|