## Command Line: multiple runs of AFR

BC
Posts: 2
Joined: Mon Jan 31, 2005 5:32 pm

### Command Line: multiple runs of AFR

Hi

I'm trying to run AFR through the command line in an MS-DOS batch file so that I can run two sets of AFR with different configuration files. However, it seems that only the config file that I last ran through Windows AFR is being executed. I have even tried to copy the relevant config file to default.cfg but this makes no difference.

rem first file

rem second file

Thanks

Abacre
Posts: 1206
Joined: Mon Jan 31, 2005 5:32 pm
Did you read command line parameters topic?
http://www.abacre.com/afr/manual/commandline.htm

So try this:

Does it work?
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

BC
Posts: 2
Joined: Mon Jan 31, 2005 5:32 pm

### Command Line: multiple runs of AFR

Hi Roman

Thank you very much for your prompt reply and helping me to solve my problem.

The AFR program works fine through the command line. The error was mine: I was using the long filenames ( -config c:\program files\advanced find and replace\file1.cfg) when specifying the config file rather than the 8-character DOS format ( -config c:\Progra~1\Advanc~1\file1.cfg) filenames, as shown in your example.

My DOS batch file works wonderfully now!

Kind Regards
BC

Abacre
Posts: 1206
Joined: Mon Jan 31, 2005 5:32 pm

### Re: Command Line: multiple runs of AFR

BC wrote:The AFR program works fine through the command line. The error was mine: I was using the long filenames ( -config c:\program files\advanced find and replace\file1.cfg)