|pball: is there an easy way to get just the file name|
FOR /? Really, everyone here will just refer to that for an answer. You really should just cut out the middle men.
But to answer the question, use %%~Na.
Mechanix2Go: Why am I not surprised.
Because if it takes more than three lines, I look for a different way?
Also, if we wrote up a How To article on dates and batch files, do you think we could get Justin to post it? Because, really, half of the questions here seem to be dedicated to the subject.