How can I send files to DOS for further automated processing?
| |
Use the following instructions to send file names to DOS:
1.
|
Launch FoldMonkey. Find and check the "Launch Program" check box in the "Settings" window.
|
2.
|
Check the "Wait For Program To Close Before Moving To Next File" check box.
|
3.
|
Enter the following information in the "Launch" section:
Program: C:\mybatchfile.bat
Parameters: "<filePath>" "<newFileName>"
Note: Include the quote marks when entering the above information.
The Launch section should now look like this:

|
4.
|
Create a batch file C:\mybatchfile.bat with the following contents:
@echo off
cls
echo %1
echo %2
pause
cls
exit
|
When you start scanning, FoldMonkey will call the batch file for each new file found. The batch file above is designed only to output the file name to the DOS screen.
You can edit the batch file to suit your needs. For example, you can use the copy or move commands to copy or move the file. You can call third party programs to work on each file etc.
You can access the file path using the %1 variable in the batch file. You can access the file name using the %2 variable in the batch file.
|
|