Hello, I have a directory that list hundreds of files with a name in this format: "Name of file - 0001.pdf" I would like to create a command that would switch the number of the file to the begenning of the file name. ie. "0001 - name of file.pdf" This command should do this for each file in the directory. I figure I should be able to do it with a for command but can not figure out how to start. Could anyone get me started? v/r john
Are you familiar with vbscript? This process would be quite simple. It's been too long since I last tried a for loop in dos so I'm no help there. If you like, you could post this request in the vbscript newsgroup. On Tue, 05 Feb 2008 12:16:01 -0600, John wrote: > Hello, > I have a directory that list hundreds of files with a name in this format: > "Name of file - 0001.pdf" I would like to create a command that would switch > the number of the file to the begenning of the file name. ie. "0001 - name of > file.pdf" This command should do this for each file in the directory. I > figure I should be able to do it with a for command but can not figure out > how to start. Could anyone get me started? > > v/r > john >