Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Need Clarity on /arguments and directory

$
0
0

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


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>