- Joined
- Apr 5, 2018
- Messages
- 30
- Reaction score
- 0
I have written a "*.BAT" file to rename some files.
I need to rename a bunch of files every now and then and it is a tedious task to rename them 1 by 1.
In the older DOS days, this batch file would run without problems.
But in Windows "Command Prompt" I keep getting an error.
What is wrong with the batch file?
TIA
Example:
newname.bat
rename e:\pictures\sorted\2003\20030106 ?144326 carmen.jpg e:\pictures\sorted\2003\20030106 144326 carmen.jpg
rename e:\pictures\sorted\2003\20030106 ??144740 carmen.jpg e:\pictures\sorted\2003\20030106 144740 carmen.jpg
rename e:\pictures\sorted\2003\?20030106 ??144810 carmen.jpg e:\pictures\sorted\2003\20030106 144810 carmen.jpg
rename e:\pictures\sorted\2003\?20030106 ??144811 carmen.jpg e:\pictures\sorted\2003\20030106 144811 carmen.jpg
rename e:\pictures\sorted\2003\?20030106 ??144832 carmen.jpg e:\pictures\sorted\2003\20030106 144832 carmen.jpg
REMARK:
The Question Mark in the first files is the Hex Character "3F" which doesn't appear in Windows but does appear in some File Renaming Applications and in the Command Prompt.
I need to rename a bunch of files every now and then and it is a tedious task to rename them 1 by 1.
In the older DOS days, this batch file would run without problems.
But in Windows "Command Prompt" I keep getting an error.
What is wrong with the batch file?
TIA
Example:
newname.bat
rename e:\pictures\sorted\2003\20030106 ?144326 carmen.jpg e:\pictures\sorted\2003\20030106 144326 carmen.jpg
rename e:\pictures\sorted\2003\20030106 ??144740 carmen.jpg e:\pictures\sorted\2003\20030106 144740 carmen.jpg
rename e:\pictures\sorted\2003\?20030106 ??144810 carmen.jpg e:\pictures\sorted\2003\20030106 144810 carmen.jpg
rename e:\pictures\sorted\2003\?20030106 ??144811 carmen.jpg e:\pictures\sorted\2003\20030106 144811 carmen.jpg
rename e:\pictures\sorted\2003\?20030106 ??144832 carmen.jpg e:\pictures\sorted\2003\20030106 144832 carmen.jpg
REMARK:
The Question Mark in the first files is the Hex Character "3F" which doesn't appear in Windows but does appear in some File Renaming Applications and in the Command Prompt.
Last edited: