Purpose:
Input 2 parameters for the executed file "foo_test". The first parameter as the input file and second parameter as the output file.
Action:
1. Put all *.ssy files and the executed file in the same directory
2. Content of the Batch file "foo_batch.bat" is as follows
@del dir.txt
for %%j in ( *.ssy ) do (
@echo %%j > dir.txt
@echo %%~nj.txt >> dir.txt
@foo_test < dir.txt
)
@del dir.txt
3. Execute "foo_batch" under DOS mode
Input 2 parameters for the executed file "foo_test". The first parameter as the input file and second parameter as the output file.
Action:
1. Put all *.ssy files and the executed file in the same directory
2. Content of the Batch file "foo_batch.bat" is as follows
@del dir.txt
for %%j in ( *.ssy ) do (
@echo %%j > dir.txt
@echo %%~nj.txt >> dir.txt
@foo_test < dir.txt
)
@del dir.txt
3. Execute "foo_batch" under DOS mode
沒有留言:
張貼留言