Solved: batch programming: reading and writing from/to text file?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

sternkanz

Thread Starter
Joined
Oct 3, 2008
Messages
21
Hi,

I would like to have a text file that stores a number, lets say 2000. I want my batch script to grab the number from that file, and put it into a variable. The script will then do stuff with that variable and once it is finished, add 1 to it (don't know how easy that bit is). Then I want the script to write this number (2001) back into the text file, overwriting the old number.

So basically the contents of the text file would go from 2000, to 2001, to 2002, etc each time the batch file is run.

Would anyone be able to point in the right direction for this?

Any help is highly appreciated.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top