In recent projects there is a need to use the day batch function, and the application server is Windows, so I decided to use bat to achieve.
After the development test, placed on the test server OK, successful implementation of the day batch processing function.
Therefore, the weekend is deployed to the official server. Monday morning to see the next log record, the day of processing did not execute successfully, find the reason
The bat command does not correctly recognize the command you want to execute because it turns out to be a folder name with a name with a space in the path.
To avoid this ambiguity, enclose the path in quotation marks when the folder name has a space.
As shown below:
Before modification
C:
CD C:\Users\mid0001\Desktop\pdi-ce-4.4.0-stable\data-integration
kitchen.bat/norep-file=D:\ymsm TEST\YMSM-TEST.KJB
Exit
After modification
C:
CD C:\Users\mid0001\Desktop\pdi-ce-4.4.0-stable\data-integration
kitchen.bat/norep-file="D:\ymsm test\ymsm-test.kjb"
Exit