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

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Environment Variable to a text file

Reply to Message Icon

Original Message
Name: Hazelett
Date: July 20, 2008 at 14:54:33 Pacific
Subject: Environment Variable to a text file
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


Report Offensive Message For Removal


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

path > fred.txt


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal

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

ECHO %PATH% > PATH.TXT

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


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Environment Variable to a text file

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 





Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge
Poll History




Data Recovery Software