Issue with execute command bat file
Posted: Tue Feb 19, 2019 3:34 pm
Hi again,
I try to execute command with Enfocus but it doesn't work.....
Working on Windows 10 Pro platform
This work fine when I run the .bat file :
Extract the clipping path from image :
C:\Program Files\ImageMagick\magick.exe identify -quiet -format "%[8BIM:1999,2998:#1]" C:\Users\Administrateur\Documents\in.png >C:\Users\Administrateur\Documents\out.svg
So know, would like to use it with hotfolder. Because of the format of expression, I use .bat file to prevent issue with the quotes and % [ ,
1- Save the .bat file in C:\Users\Administrateur\Documents\export_path.bat
2- Made a Flow with execute command > Choose file : C:\Users\Administrateur\Documents\export_path.bat
3- Define single line text with variables : "%1" "%2"
4- Output : file at path : .svg
4- Modify the .bat file in order to specify the input and output filepath :
C:\Program Files\ImageMagick\magick.exe identify -quiet -format "%[8BIM:1999,2998:#1]" '$1'>'$2'
5- Active flow, and it's gone wrong, nothing in output folder
5- Try to change '$1'>'$2' with double quote, ($1) , [1]..... damned, it doens't work....
Reading this : https://www.enfocus.com/en/support/know ... 000jfc9IAA
but doesn't solve issue....
Thx in avance,
Christian
I try to execute command with Enfocus but it doesn't work.....
Working on Windows 10 Pro platform
This work fine when I run the .bat file :
Extract the clipping path from image :
C:\Program Files\ImageMagick\magick.exe identify -quiet -format "%[8BIM:1999,2998:#1]" C:\Users\Administrateur\Documents\in.png >C:\Users\Administrateur\Documents\out.svg
So know, would like to use it with hotfolder. Because of the format of expression, I use .bat file to prevent issue with the quotes and % [ ,
1- Save the .bat file in C:\Users\Administrateur\Documents\export_path.bat
2- Made a Flow with execute command > Choose file : C:\Users\Administrateur\Documents\export_path.bat
3- Define single line text with variables : "%1" "%2"
4- Output : file at path : .svg
4- Modify the .bat file in order to specify the input and output filepath :
C:\Program Files\ImageMagick\magick.exe identify -quiet -format "%[8BIM:1999,2998:#1]" '$1'>'$2'
5- Active flow, and it's gone wrong, nothing in output folder
5- Try to change '$1'>'$2' with double quote, ($1) , [1]..... damned, it doens't work....
Reading this : https://www.enfocus.com/en/support/know ... 000jfc9IAA
but doesn't solve issue....
Thx in avance,
Christian