Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
misc
exam.security
microsoft_update_catalog
msdn.annotations
msdn.drgui.discussion
msdn.duwamish
msdn.general
msdn.magazine
msdn.soaptoolkit
msdn.webservices
msdntraining
opsmgr.connectors
opsmgr.sp1
technet
technet.howtofeedback
technet.howtoneeds
technet.magazine
technet.technettalks
  
 
date: Tue, 5 Feb 2008 10:16:01 -0800,    group: microsoft.public.technet.howtoneeds        back       


bat file or command to rename multiple files   
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
date: Tue, 5 Feb 2008 10:16:01 -0800   author:   John

Re: bat file or command to rename multiple files   
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
>
date: Tue, 05 Feb 2008 13:48:53 -0600   author:   Funker

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us