variable in DOS

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
feboleena
Posts: 1
Joined: 10 Mar 2013 03:28

variable in DOS

#1 Post by feboleena » 23 Mar 2013 17:32

How do you save your results to a variable in DOS? I'm still working with the Windows 98 version of DOS on this particular machine. I've been able to use the FIND command to count the number of results I find in a file, but I can't figure out how to save those results to a variable so I can compare results. I have another program constantly adding things to the file, so I would like to be able to tell when certain things are added.
________________________
things to do in au ~ dark fruit cake recipe
Last edited by feboleena on 25 Mar 2013 23:43, edited 1 time in total.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: variable in DOS

#2 Post by foxidrive » 23 Mar 2013 20:30

You can use a qbasic script, a third party tool, or use the date command with temporary files to capture the output of FIND.

Win9x is 15+ years old now and doesn't have good support for batch tasks like NT class Windows does.

Post Reply