Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Execute 7zip with parameter

Hi Friends,

I am facing problem while trying to run Execute command with parameter. The content of the parameter is Filename

Let File='FileName.gz';

Execute 7z.exe x 'C:\junk\'$(File) -oC:\junk\;

The above statement does not work whereas if I replace the parameter with FileName it works

Execute lib://Raw_Files/7z.exe x "C:\junk\FileName*" -o"C:\junk\";

My question is how to use parameter on the second statement

Thanks, Deb

10 Replies
vasilev
Creator
Creator

It works! You should add "cmd.exe /C" in the command. You also shouldn't use double quotes in the paths.

Execute cmd.exe /C 7z.exe x C:\junk\$(File) -oC:\junk\;

BR,

Rumen