Computing.Net > Forums > Disk Operating System > Environment Variable to a text file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Environment Variable to a text file

Reply to Message Icon

Name: Hazelett
Date: July 20, 2008 at 14:54:33 Pacific
OS: WINXP SP2
CPU/Ram: 1 meg
Comment:

How do I access the path statement and write that path to a .TXT file?

Robert Earl Hazelett



Sponsored Link
Ads by Google

Response Number 1
Name: cup
Date: July 20, 2008 at 15:52:13 Pacific
Reply:

path > fred.txt


0

Response Number 2
Name: Hazelett
Date: July 21, 2008 at 10:51:44 Pacific
Reply:

HI! Thsnks for responding. Trouble is your solution does not work. Not by itself anyway. The string you offer does absolutely NOTHING useful

But there's a lot more to it than that. In a batch file or a script I can use a line that says

echo %path%>fred.txt

rather than

path>fred.txt

and my version will solve "PART" of my problem but it isn't a COMPLETE solution.

Are you knowledgeable regarding batch files or scripts? The quality and size of your response makes me wonder. If you want to talk about the much larger problem, one that involves the PUSHD and POPD commands, email me at at

hazelett@gawab.com

or

rehazelett@yahoo.com

No sense in cluttering this forum with talk that will probably interest no one else.

Thanks,

Bob

Robert Earl Hazelett


0

Response Number 3
Name: Zenith
Date: August 12, 2008 at 15:39:03 Pacific
Reply:

ECHO %PATH% > PATH.TXT

Search Engines Are Your Friends ☺
Morpheus: There is a difference between
knowing the path and walking the path. "The Matrix"


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Environment Variable to a text file

Re-direct ">" info to a text file WITHOUT re-creating that text file www.computing.net/answers/dos/redirect-info-to-a-text-file-without-recreating-that-text-file/2058.html

Getting Contents of a Text File www.computing.net/answers/dos/getting-contents-of-a-text-file/13123.html

Read a text file into a batch pgm? www.computing.net/answers/dos/read-a-text-file-into-a-batch-pgm/8760.html