Computing.Net > Forums > Programming > recall variable

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.

recall variable

Reply to Message Icon

Name: brockey01
Date: July 4, 2009 at 00:23:46 Pacific
OS: Windows Vista
CPU/Ram: 1024
Product: Hewlett-packard / Sd2100
Subcategory: Batch
Comment:

need help,

what i want to do is store an input into an log.txt file then recall the info based off today date.

so

set /p test=something:
set /p test2=something:
echo %date% >log.txt
echo %test% >log.txt
echo %test2% >log.txt

then i think use findstr and have the info from the log.txt into the batch file.

but not sure how to work it out.

i dont mind having more then one log.txt to store each info but might be easier to do that.

Thank you for the help
Brock



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: July 4, 2009 at 03:07:46 Pacific
Reply:

I'm not clear on what you want.

You put 2 vars and date into a file. Now what?


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: brockey01
Date: July 4, 2009 at 04:23:50 Pacific
Reply:

then have the same batch file search the date in a 2 week span and list the date and variable in the cmd window.


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 Programming Forum Home


Sponsored links

Ads by Google


Results for: recall variable

SWAP without temp variable www.computing.net/answers/programming/swap-without-temp-variable/4268.html

Batch File- Subfolder as a Variable www.computing.net/answers/programming/batch-file-subfolder-as-a-variable/14153.html

windows environment variables www.computing.net/answers/programming/windows-environment-variables/1098.html