Need Clarity on /arguments and directory
-
19 августа 2012 г. 13:26
Hi ,
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
For:
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:\WINDOWS\System32\cmd.exe" "C:\WINDOWS\system32\cmd.exe
/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

