Home > Archive > MSDN > May 2005 > Batch File for Windows - Using spaces in filename.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Batch File for Windows - Using spaces in filename.
|
|
| Muddie 2005-05-07, 3:55 am |
| Need help, I am trying to batch rename a group of files in a Windows folder.
the original files are standard filenames eg. 00000001.tif, they need to be
renamed to include spaces in the new filename eg. bob smith 1234.tif
The standard Batch file of : ' rename C:\Data\00000001.tif bob smith
1234.tif ' does not work.
Can anyone help?
Regards
--
grm
| |
| Keith MacDonald 2005-05-07, 8:55 am |
| Just put double quotes around the new name:
rename C:\Data\00000001.tif "bob smith 1234.tif"
- Keith MacDonald
"Muddie" <Muddie@discussions.microsoft.com> wrote in message
news:7842BBBD-CF98-4C5D-94AF-8FDF559F8258@microsoft.com...
> Need help, I am trying to batch rename a group of files in a Windows
> folder.
> the original files are standard filenames eg. 00000001.tif, they need to
> be
> renamed to include spaces in the new filename eg. bob smith 1234.tif
> The standard Batch file of : ' rename C:\Data\00000001.tif bob smith
> 1234.tif ' does not work.
> Can anyone help?
> Regards
> --
> grm
|
|
|
|
|