|
Batch file processing = Yes |
Top Up Down
A A |
To avoid Facets requesting user intervention when it is run in batch mode from the DOS prompt or otherwise, include Batch=Yes on the command line in your.bat or .cmd file.
The general format is: Facets BATCH=YES specification-file output-file extra-specifications
Under Windows-2000, -XP and later Windows-NT
It is often useful to run multiple Facets tasks, one after the other, without keyboard intervention. This can be accomplished by running Facets in CMD batch mode.
Here is a typical .CMD file. It is Facetsxp.cmd in the Examples folder. Double-click on it to launch it.
echo This is the version for Windows-NT, 2000 echo This is a batch file to run Facets in batch mode echo Edit the next lines and add more. echo Format of lines is: echo START /WAIT ..\Facets BATCH=YES Control-file Output-file Extra=specifications START /WAIT ..\Facets BATCH=YES dives.txt dives.out.txt START /WAIT ..\Facets BATCH=YES lfs.txt lfs.out.txt START /WAIT ..\Facets BATCH=YES kct.txt kct.out.txt |
Under early versions of Windows (e.g. 98, ME, but not 95 nor 3.1)
It is often useful to run multiple Facets tasks, one after the other, without keyboard intervention. This can be accomplished by running Facets in batch mode.
Here is a typical .bat file. It is Facets95.bat in the Examples folder. Double-click on it to launch it.
echo This is a batch file to run Facets in batch mode echo Edit the next lines and add more. echo Format of lines is: echo START /w ..\Facets BATCH=YES Control-file Output-file Extra=specifications START /w ..\Facets BATCH=YES dives.txt dives.out.txt START /w ..\Facets BATCH=YES lfs.txt lfs.out.txt START /w ..\Facets BATCH=YES kct.txt kct.out.txt |
Under early Windows-NT
It is often useful to run multiple Facets tasks, one after the other, without keyboard intervention. This can be accomplished by running Facets in batch mode.
Here is a typical .bat file. It is FacetsNT.bat in the Examples folder. Double-click on it to launch it.
echo This is a batch file to run Facets in batch mode echo Edit the next lines and add more. echo Format of lines is: echo Facets BATCH=YES Control-file Output-file Extra=specifications ..\Facets BATCH=YES dives.txt dives.out ..\Facets BATCH=YES lfs.txt lfs.out.txt ..\Facets BATCH=YES kct.txt kct.out.txt |
Example: Simulate and analyze 1000 Facets data sets from lfs.txt
Double-click on Simul.bat in the Examples folder:
Rem Simulate and analyze 1000 data sets rem perform analysis and write out the anchor values START /WAIT ..\Facets BATCH=YES lfs.txt specfile.out.txt anchorfile=lfsanc.txt SET /A COUNT=1 LOOP echo Loop number %COUNT% rem do this 1000 times IF %COUNT% == 1001 GOTO END rem generate simulate data file from lfsanc.txt to avoid re-estimation each time START /WAIT ..\Facets BATCH=YES lfsanc.txt specfile.out.txt simul=s%COUNT%.txt rem analyze simulated file replacing data in lfs.txt with the simulated data START /WAIT ..\Facets BATCH=YES lfs.txt s%COUNT%.out.txt data=s%COUNT%.txt SET /A COUNT=COUNT+1 GOTO LOOP :END PAUSE |
Help for Facets Rasch Measurement Software: www.winsteps.com.