19 августа 2012 г. 13:26
I have a an Issue i am trying to Zip files using Execute Process task where i am trying to call 7-zip.exe thru Execute Process task. Following are my Expressions and arguments for Execute Process task
Executable It is set to :"C:\WINDOWS\System32\cmd.exe"
For Argumets :C:\WINDOWS\system32\cmd.exe /c C:\Program Files (x86)\7-Zip\7z.exe a D:\Encrpty\Result\Test.txt.zip D:\Encrpty\Result\Test.txt
which is coming dynamically from Variable within a For each Loop counter task
For Working directory: "C:\"
But Whenevr i try to execute its failing by giving following error:
[Execute Process Task] Error: In Executing
/c C:\Program Files (x86)\7-Zip\7z.exe a D:\Encrpty\Result\New Text Document (2).txt.zip
D:\Encrpty\Result\New Text Document (2).txt" at "C:\", The process exit code was "1" while the expected was "0".
Please have look on the comment
19 августа 2012 г. 21:06Модераторset executable as 7zip exe location and remove all cmd and 7zip exe locations from the arguments, just use switches and other options in Arguments