johnj_01201
asked on
powershell need help executing command line program
I think it has to do with single and double quotes. I had the same problem using tiffcp.exe and it took me several days of trial and error to get it working. I was not able to get PDFtk working with variables:
What do you think?
thanks!
$input = 'one.PDF two.PDF'
$options = ' cat output '
$output = ' c:\temp\document.PDF'
#this works:
& pdftk.exe -version
#this does work:
&pdftk.exe one.PDF two.PDF cat output "c:\temp\document.PDF"
#this doesn't work:
& pdftk.exe $input cat output $output
What do you think?
thanks!
$input = 'one.PDF two.PDF'
$options = ' cat output '
$output = ' c:\temp\document.PDF'
#this works:
& pdftk.exe -version
#this does work:
&pdftk.exe one.PDF two.PDF cat output "c:\temp\document.PDF"
#this doesn't work:
& pdftk.exe $input cat output $output
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER