.NET Environment Variables

  • Thread starter Thread starter BartA Simpson via .NET 247
  • Start date Start date
B

BartA Simpson via .NET 247

Here is MY QUESTION:
We have an old COBOL application that presently writes out text flat files to the hard disk using Windows environment variable settings to represent D:\folder\filename.

We have created a similar .NET application and would like to see a code snippet or get instruction on how to have .NET use the Windows ennvironment variables.

(We have SAN drives and Microsoft Cluster environment and need to have a way to address "the drive" to write out data flat files to it. We then manually copy them and use "sneaker net" to an "air gap" LAN for security reasons. thanks.)
 
BartA said:
Here is MY QUESTION:
We have an old COBOL application that presently writes out text flat
files to the hard disk using Windows environment variable settings to
represent D:\folder\filename.

We have created a similar .NET application and would like to see a
code snippet or get instruction on how to have .NET use the Windows
ennvironment variables.

(We have SAN drives and Microsoft Cluster environment and need to
have a way to address "the drive" to write out data flat files to it.
We then manually copy them and use "sneaker net" to an "air gap" LAN
for security reasons. thanks.)

static string System.Environment.GetEnvironmentVariable(string). Pass in
the name of the variable you want and this method will return the value of
that variable.
--
Tom Porterfield
MS-MVP MCE
http://support.telop.org

Please post all follow-ups to the newsgroup only.
 
Back
Top