473,386 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

.NET Environment Variables

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.)

--------------------------------
From: BartA Simpson
--------------------------------
From: BartA Simpson

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>c8oqLjA/H0yEU2az8gZQ4A==</Id>
Jul 21 '05 #1
2 1539
BartA Simpson via .NET 247 wrote:
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.

Jul 21 '05 #2
BartA Simpson via .NET 247 wrote:
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.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Greg Lindstrom | last post by:
Hello- I am running python 2.3. on an HP-9000 box running Unix and have a POSIX script that sets up my production environment. I would like to run the script from inside a python routine and...
28
by: Christian | last post by:
Another question from a not even newbie: In Unix you can set an environment variable with the command export PYTHONPATH but I would like to set the variable from at .py script. So my question...
4
by: Bill Davidson | last post by:
All: I've found the 'Environment.GetEnvironmentVariable()' method; but how do I create and/or set an environment variable? Thanks, Bill
4
by: Ron Clarke | last post by:
I have an application that starts other processes. The app needs to create/set a few environment variables when a process starts, let the process run, then remove the environment variables when the...
6
by: Fuzzyman | last post by:
Hello all, I would like to set a Windows Environment variable for another (non-child) process. This means that the following *doesn't* work : :: os.environ = value In the ``win32api``...
1
by: pagates | last post by:
Hi All, What's the "best" way to get System Environment Variables (VS2003)? Environment.GetEnvironmentVariable("xxx") only gets user Environment variables. Thanks, pagates
2
by: ANarula | last post by:
I am running into a strange problem. I have perl script which reads the "APPDATA" environment variable, and does some work on that directory. When I a launch this script from Command Prompt, it...
3
by: Tristan | last post by:
Hello community: I post this because I could not find satisfactory answers in the posts generated by this nice group. I work on winXP. I have many little python applications in different folders,...
3
by: smitty1e | last post by:
Just a fun exercise to unify some of the major input methods for a script into a single dictionary. Here is the output, given a gr.conf file in the same directory with the contents stated below: ...
4
by: Stephen Cattaneo | last post by:
Hello all, I am attempting to execute an automated test (written in Python) via cron. I have to check the HOSTNAME variable as part of the test, oddly under cron the HOSTNAME environment...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.