Syntax to rename a file using BRC32 command line tool

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Syntax to rename a file using BRC32 command line tool

Postby cheeyangt » Tue Feb 13, 2007 9:00 am

I cant seem to find the syntax to rename a single file using brc32 command line tool. may i know how?

this is what i have in mind now:

brc32 /nofolders /pattern:C:\date.txt /appenddate:N:S:-::2 /execute

but i get the error message "Processing folder C:\winnt\system32...'

any idea why? and how do i specify the filename for this cmd line tool?

PS: does this tool support win2000 server OS?
cheeyangt
 
Posts: 3
Joined: Tue Feb 13, 2007 6:22 am

Postby Admin » Tue Feb 13, 2007 9:50 am

Hi,

The emssage youa re seeing is not an error, it's a status message.

However, I think you are using /pattern instead of /folder?


Yes, this fully supports Windows 2000.


Jim
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

Postby cheeyangt » Tue Feb 13, 2007 9:54 am

is there such a parameter /folder?

actually i dont know what is the correct syntax to use to rename a single file. can you give me some examples?
cheeyangt
 
Posts: 3
Joined: Tue Feb 13, 2007 6:22 am

Postby Admin » Tue Feb 13, 2007 10:11 am

Sorry, it's /DIR.

It's all in the help file. What exactly are you trying to do? Your command was:

brc32 /nofolders /pattern:C:\date.txt /appenddate:N:S:-::2 /execute


If we correct the PATTERN parameter we get:

brc32 /nofolders /dir:C:\date.txt /appenddate:N:S:-::2 /execute

However, based upon what I *think* you are trying to do, you probably want this:

brc32 /nofolders /dir:C:\Temp /pattern:date.txt /appenddate:N:S:-::2 /execute



Jim
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

Postby cheeyangt » Tue Feb 13, 2007 10:21 am

this is what i want to do:

1. i have a file, c:\winnt\schedlgu.txt, that i want to rename to become schedlguxxxxxxx.txt

2. i want to embed this brc32 cmd line tool into a .cmd file and schedule this cmd file to run every 30 minutes.

problem is i dont know what is the correct syntax to specify just a single file to rename. can you help me to define the correct syntax? is this the correct syntax:

brc32 /dir:c:\winnt\schedlgu.txt /appenddate:N:S:-::2 /execute

but when i run this tool, i get the message Processing Folder c:\winnt\schedlgu.txt\, but the file itself is not renamed.

can you help out? thanks a lot.
cheeyangt
 
Posts: 3
Joined: Tue Feb 13, 2007 6:22 am

Postby Admin » Tue Feb 13, 2007 11:03 am

You're not reading what I've already written.

brc32 /nofolders /dir:C:\Temp /pattern:date.txt /appenddate:N:S:-::2 /execute


to to use your last example, it's:

brc32 /dir:c:\winnt\schedlgu.txt /appenddate:N:S:-::2 /execute

/dir: ifs for a DIRECTORY; /pattern is for the afile apttern (or sinlge file).

So to make your last example work, it's:

brc32 /dir:c:\winnt /pattern:schedlgu.txt /appenddate:N:S:-::2 /execute



Jim
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support