JobName in .bat file and %1 %2 arguments
Posted: Thu Oct 04, 2018 5:11 pm
Hi again ,
Another question : I have a script I want to use with enfocus switch but didn't work...
Here is : a Java script runs on Windows with a .bat file :
"java -jar PDFCheck.jar "C:\java\IN\myfile.pdf" "valuecheck" "C:\java\OUT"
-test the .bat in command prompt , it's work OK
I would like to use it with Enfocus Switch to launch this .bat file each time a file is in input folder.
-> replace "C:\java\IN\myfile.pdf" with "%1\[Job.NameProper]" for the input file
-> replace "C:\java\OUT" with "%2" for the output directory ( the script generate a pdf with its result and place it in this directory)
So made a flow, with this .bat file:
"java -jar PDFCheck.jar "%1\[Job.NameProper]" "valuecheck" "%2" in Execute Command ( Choose folder where the .bat file is located)
Arguments : nothing / try with "%1" "%2" didn't work too
Output : Result in folder/ try other options didn't work too
I try lot of combinaison, but nothing happens, in fact I didn't really know where I must give the input and outpout destination and how I could tell to the script the name of the file...
Thanks in advance for your helps,
Christian
Another question : I have a script I want to use with enfocus switch but didn't work...
Here is : a Java script runs on Windows with a .bat file :
"java -jar PDFCheck.jar "C:\java\IN\myfile.pdf" "valuecheck" "C:\java\OUT"
-test the .bat in command prompt , it's work OK
I would like to use it with Enfocus Switch to launch this .bat file each time a file is in input folder.
-> replace "C:\java\IN\myfile.pdf" with "%1\[Job.NameProper]" for the input file
-> replace "C:\java\OUT" with "%2" for the output directory ( the script generate a pdf with its result and place it in this directory)
So made a flow, with this .bat file:
"java -jar PDFCheck.jar "%1\[Job.NameProper]" "valuecheck" "%2" in Execute Command ( Choose folder where the .bat file is located)
Arguments : nothing / try with "%1" "%2" didn't work too
Output : Result in folder/ try other options didn't work too
I try lot of combinaison, but nothing happens, in fact I didn't really know where I must give the input and outpout destination and how I could tell to the script the name of the file...
Thanks in advance for your helps,
Christian