Rename a File Using Win XP CMD

January 11, 2012 at 23:39:05
Specs: Windows XP
I am using XP cmd to rename a file from client_bu*.bak to client_BU%date%.bak

I have tried all of the suggestions from the replies in 3/06 but I keep getting the error
the syntax of tghe command is incorrect.

I tried ren clients_bu*.bak clients_bu_%DATE%.bak but get the same result.

any suggestions?

See More: Rename a File Using Win XP CMD

Report •

January 12, 2012 at 04:46:36
Instead of using command-line, have you tried the normal way of renaming in Windows? (right-click the file >> rename).

Report •

January 12, 2012 at 10:43:05
Sorry, probably did not give enough information. The file is a backup file that is generated each evening. I need to use the command line so that the file is renamed automatically, even when someone is not available to to it manually. Otherwise, the backup program will over write it the next evening. So, though you suggestion is valid, I need an automatic solution. I looked at other programs that will do this but they are waaaaaay too expensive.

Thanks for you suggestion.

Report •

February 4, 2012 at 00:54:30
Try using the xcopy command in a batch file

Report •

Related Solutions

February 4, 2012 at 03:48:32
Have you looked at NTBackup that comes with Wndows XP. It has various backup options, one of them is to create a new backup set every time it is run. You can then save or delete the backups as you need once a week or once a month as suits.

With Wndows XP professional it is installed automatically but if you are running Windows XP Home it has to be manually installed from the Wndows CD.


Report •

Ask Question