Calling another file from a .bat file issue
Posted: 13 Oct 2009 08:53
In my company's check printing process, which has been altered, we need to call a batch file on a server to run from another server.
Here's the gist of the process:
1. Checks are sent from our ERP system to the printer.
2. The check formatting/processing application is polling the system for the file(s), and grabs them.
3. The raw data is processed into our specific format to be printed.
4. All the processed data is then sent to the printer, and to another server to be archived via an imaging system.
5. Here's the issue--A batch file on the first server is used to call a batch file on the imaging server to process the the data into images.
Here is the the file used to call the remote .bat:
cd ..\..\
cd "Program Files\PSTools"
psexec \\imagenow \\imagenow\e$\inserver6\script\RTS_ImportChecksAndUpdateCheckNum.bat
**psexec is a part of pstools to run processes on remote systems.
If I run this .bat manually, the .bat file runs correctly on the remote server.
If someone has an idea about getting this to run the remote process, please let me know. If there is a better way to script it, I am open to that as well.
Here's the gist of the process:
1. Checks are sent from our ERP system to the printer.
2. The check formatting/processing application is polling the system for the file(s), and grabs them.
3. The raw data is processed into our specific format to be printed.
4. All the processed data is then sent to the printer, and to another server to be archived via an imaging system.
5. Here's the issue--A batch file on the first server is used to call a batch file on the imaging server to process the the data into images.
Here is the the file used to call the remote .bat:
cd ..\..\
cd "Program Files\PSTools"
psexec \\imagenow \\imagenow\e$\inserver6\script\RTS_ImportChecksAndUpdateCheckNum.bat
**psexec is a part of pstools to run processes on remote systems.
If I run this .bat manually, the .bat file runs correctly on the remote server.
If someone has an idea about getting this to run the remote process, please let me know. If there is a better way to script it, I am open to that as well.