Computing.Net > Forums > Windows NT > concatenate file name and date

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.

concatenate file name and date

Reply to Message Icon

Name: rvroth
Date: March 2, 2004 at 03:08:45 Pacific
OS: Win NT 4.0
CPU/Ram: 384Mo, Pentium 3
Comment:

Hi everybody

I'm trying to concatenate a file name with the curent date in a doc batch file.

Unfortunatly, the variable %date% returns nothing. Is it defined in Winnt? Else, how could I define it or does anybody have a solution to my problem?

Thanks a lot for your replies...



Sponsored Link
Ads by Google

Response Number 1
Name: jubalsams
Date: March 2, 2004 at 21:17:02 Pacific
Reply:

Try this and see what it does:

ECHO. | DATE | FIND "Current" >> C:\TEST.TXT
ECHO. | TIME | FIND "Current" >> C:\TEST.TXT

Might work, can't hurt to try it.
Each of those two are just one line.

Best



0

Response Number 2
Name: rvroth
Date: March 2, 2004 at 22:38:43 Pacific
Reply:

Thanks but it doesn't work. I tried some commands around this aswell, but no success.

My problem is to set a variable with the actual date, but %date% is not defined in WinNT ...


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 Windows NT Forum Home


Sponsored links

Ads by Google


Results for: concatenate file name and date

Batch file to add date to file name www.computing.net/answers/windows-nt/batch-file-to-add-date-to-file-name/21062.html

Running Time and Date in a Com file www.computing.net/answers/windows-nt/running-time-and-date-in-a-com-file/9553.html

Terminal Server - Lotus - Long File Name www.computing.net/answers/windows-nt/terminal-server-lotus-long-file-name/11881.html