View Single Post
Old 10-16-2006, 06:03 PM   #1 (permalink)
hillbillybob
 
Super Techie

Join Date: Sep 2005

Posts: 341

hillbillybob

Default Rename files with batch file

Hello,

Have a question. Has anyone attempted to automate the renaming of a file using the Date environment variable. In essence what I am trying to do is take

filename.dat

and rename it to

filename%date%.dat

%date% adds a bunch of slashes to it and other charecters that don't allow you to put it in as is. I would like this to be automatic, I can set the file name, because it will be the same everytime, just want to rename it.

thanks
__________________
The greatest measure of a nation is not it\'s army or economy, but by how many people are trying to get in, and how many people are staying!!
Guns, Guts, and Alcohol made America free.
Born American, Die American
Ubuntu - it\'s all about the bun\'s baby!!!
hillbillybob is offline