Well the rename as simple as it seemed I was not able to use as it is a little more complicated than just renaming a file.
In my bat file, which runs under a CMD window in Vista, the original file gets copied then archived away. The copied file has
changes made to it and is then named for use. At this point I really have no way of telling which file goes with which file so I
hoping to take the version # out of the original file and have it added to the new file name. Simply renaming does not work.
The 2nd method devcon provided me does not work under my CMD window. I get "The syntax of the command is incorrect". After trying it in immeditate mode on the command line the %%F causes a "%%F was unexpected at this time error". Removing one of the % does allow it to work and changing the command "echo" to "set f =" does make it an environmental variable showing the file name. That is what I was looking for and I assume at this point it would be easier to edit and just take the version # from the orginal file name. However that only worked when type on the command line.
Any idea what is causing the syntax error when the bat file is run?
Thanks