Issue with execute command bat file

Post Reply
ChritianK
Member
Posts: 43
Joined: Wed Nov 29, 2017 10:57 am

Issue with execute command bat file

Post by ChritianK »

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
ChritianK
Member
Posts: 43
Joined: Wed Nov 29, 2017 10:57 am

Re: Issue with execute command bat file

Post by ChritianK »

Found solution with Enfocus Support, thx to Jan
but have a little question :
- could I use variables Job.Name etc.... in a .bat file ?

Thx,
Christian
jan_suhr
Advanced member
Posts: 586
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Issue with execute command bat file

Post by jan_suhr »

ChritianK wrote: Wed Feb 27, 2019 6:26 pm - could I use variables Job.Name etc.... in a .bat file ?

Thx,
Christian
If you use my App, Execute command friend you can do that ;)

https://www.enfocus.com/en/appstore/pro ... and-friend
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
ChritianK
Member
Posts: 43
Joined: Wed Nov 29, 2017 10:57 am

Re: Issue with execute command bat file

Post by ChritianK »

Excellent, it's works, thanks Jan, very useful this App !
Post Reply