fdservices
IS-IT--Management
I need to execute the following command in windows:
"C:\Program Files\gs\gs9.04\bin\gswin32c.exe" -sDEVICE=pdfwrite -dMaxSubsetPct=100 -dPDFSETTINGS=/ebook -sOutputFile="out.pdf" -dNOPAUSE -dQUIET -dBATCH "$file"
If I exec the command in tcl then it fails with odd errors.
If I run the command from the command line it is fine.
If I put the command in a batch file and pass the path/filename to the batch it fails, because the path is a UNC path and cannot be accessed by the batch file.
The best solution would be to run the command within the tcl script, but I have tried eval [concat..., and quoting everything and it just won't play.
Does any one have any more ideas to try out?
Thanks
Andrew
"C:\Program Files\gs\gs9.04\bin\gswin32c.exe" -sDEVICE=pdfwrite -dMaxSubsetPct=100 -dPDFSETTINGS=/ebook -sOutputFile="out.pdf" -dNOPAUSE -dQUIET -dBATCH "$file"
If I exec the command in tcl then it fails with odd errors.
If I run the command from the command line it is fine.
If I put the command in a batch file and pass the path/filename to the batch it fails, because the path is a UNC path and cannot be accessed by the batch file.
The best solution would be to run the command within the tcl script, but I have tried eval [concat..., and quoting everything and it just won't play.
Does any one have any more ideas to try out?
Thanks
Andrew