View Single Post
Old 05-18-2009, 02:12 AM   #1 (permalink)
jrgalaura
Registered User
 
Join Date: May 2009
Posts: 4
OS: Win XP SP 3


Post creating a batch file to edit a text file

Hi,


Could you guys help me make a batch file which will replace an entry in the text file - coming from an environment variable?


Basically it'll just replace the username and password. This is an excerpt of the file:
--------------------


line 1
line 2

<user username="USER" password="pass00"/>
line 4
...



--------------------

and it will replace the word "USER" and "pass00" with the Windows environment variable %username%


Can anybody here help me?


Thank you!
jrgalaura is offline   Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here