Using /AUTONUMBER in .Bat

A swapping-ground for Regular Expression syntax

Using /AUTONUMBER in .Bat

Postby lone_ranger » Mon Dec 08, 2008 2:25 am

This program looks like it will do just what I need, but I having difficulties getting the /AUTONUMBER to work in my script. I want to accomplish the following, I will have a folder called drivers and in that folder I will have several different folders. I want to rename only those folders to numbers starting with 0 and going to 50 while keeping the names of the files intact. I have been experimenting with the following command line, but obviously it's the correct and was wondering if someone could help me out.

BRC32.exe"/DIR:C:\Images /IGNOREFOLDERX /NOFILES /RECURSIVE /AUTONUMBER:Start0:Increment1:ModeB:Separator:Base50:Pad1


I receive the following errors.

Unrecognised Autonumber base: Start:Increment:Mode:Separator:Base:Pad - must be between 2 and 38
Unrecognised Autonumber base: Start:Increment:Mode:Separator:Base:Pad - must be P(refix), S(uffix) or B(oth)
lone_ranger
 
Posts: 1
Joined: Mon Dec 08, 2008 2:12 am

Re: Using /AUTONUMBER in .Bat

Postby jimwillsher » Mon Dec 08, 2008 10:30 am

Hi,

You don't want the words in the commands. So your entry of

Code: Select all
/AUTONUMBER:Start0:Increment1:ModeB:Separator:Base50:Pad1


should be something like:

Code: Select all
/AUTONUMBER:0:1:B::50:1



Jim
jimwillsher
 
Posts: 63
Joined: Wed Sep 24, 2008 1:22 pm


Return to Regular Expressions