Automating file selection

Top Up Down  A A

Use the Winsteps "Batch" pull-down menu to do this.

 

Assigning similar names to similar disk files can be automated using Batch commands.

 

For example, suppose you want to analyze your data file, and always have your output file have suffix "O.TXT", the PFILE have suffix ".PF" and the IFILE have suffix ".IF". Key in your control file and data, say "ANAL1", omitting PFILE= and IFILE= control variables. Then key in the following Batch script file, called, say, MYBATCH.BAT (for Windows-98 etc.) or MYBATCH.CMD (for Windows-2000 etc.), using your word processor, saving the file as an ASCII or DOS text file:

 

REM      the MYBATCH.BAT batch file to automate WINSTEPS

START /w ..\WINSTEPS BATCH=YES %1 %1O.TXT PFILE=%1.PF IFILE=%1.IF

 

For WINSTEPS, specify BATCH=YES to close all windows and terminate the program when analysis is complete.

 

To execute this, type at the DOS prompt (or using the Winsteps "Batch" pull-down menu:

C:> MYBATCH ANAL1 (Press Enter Key)

This outputs the tables in ANAL1O.TXT, PFILE= in ANAL1.PF and IFILE= in ANAL1.IF.

 

You can also edit the files WINBATCH.BAT or WINBATCH.CMD. These can be executed from the DOS prompt or from the Winsteps Batch pull-down menu. See Running Batch Files.