Question

System caller : comand line works in cmd not in system caller

  • 26 June 2020
  • 2 replies
  • 11 views

Hello,

I am using 7z to unzip files and would like to use it through System Caller. The command works perfectly fine in cmd, but not in system caller.

Here is my command :

"C:\\_temp\\7z.exe" x "C:\\_temp\\input\\data.zip" -o"C:\\_temp\\output"

When this line is written in a .bat file and this file is executed through System caller, it works.

 

What should I do to be able to execute my command directly in system caller?

 

Many thanks in advance,

 

 


2 replies

Userlevel 3
Badge +18

hi, @cadfmegeo, is it working if you put the command itself between extra marks like this?

""C:\_temp\7z.exe" x "C:\_temp\input\data.zip" -o"C:\_temp\output"" 

 

Thank you very much, it works very well that way!

Reply