there is no way to write a batch file(*.BAT, with out using some sort of program.
I could wirte the program for you, use some programs i have at home.
Main Topics
Browse All TopicsHi
My machine is an NT. Everyday, there will be a file (i.e. abc.txt) output to my NT server & I need to write a program (in DOS batch file) to rename the file from abc.txt to abc210300.txt
The 210300 means 21st March 2000, if today is 21/3/2000. So, everyday the program will be scheduled to run and reanme the abc.txt to
"abc" + current date + ".txt"
This is the batch file commands I have now, but I don't know how to put in the date portion.
@echo off
echo.
rename c:\temp\abc.txt abc123.txt
@echo off
Thank you.
n_chai
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
you can use the 4NT shell instead of cmd.exe
then you'll be able to do these things.
4NT is available from
http://www.jpsoft.com
You can try this site
http://www.calweb.com/~web
mples/namedate.txt
Business Accounts
Answer for Membership
by: vikiingPosted on 2000-03-22 at 06:22:38ID: 2644810
You will need the help of a tiny program (I can write it for you) to accomplish that job.
Unfortunately, there is no way to do what you need directly from DOS commands; thus, it's impossible to write a .BAT program that make that.