Skip to main content

I´m using this comand:

cd / "C:\\Program Files (x86)\\WinRAR\\Rar.exe" x-y "@Value(_response_file_path)"

The file is downloaded correctly but the unzip process don´t work properly.

Thank´s

Hi @mr_fme

I think you can use the custom transformer ZipExtractor after the HttpCaller.

Thanks,

Danilo


Hi @mr_fme

I think you can use the custom transformer ZipExtractor after the HttpCaller.

Thanks,

Danilo

Unfortunately not! I´m using 2017 version. This transformer crash my workbench. I need to use command line.

 

 


The SystemCaller would be the transformer to use for that.


The SystemCaller would be the transformer to use for that.

Correct!! But I need the correct command line

 

 


Correct!! But I need the correct command line

 

 

Does that command line you posted work ok if you run it directly in cmd?

 

 

I'd try it without the cd /, I think the SystemCaller tries to execute the whole thing as a single command.

 

 


Does that command line you posted work ok if you run it directly in cmd?

 

 

I'd try it without the cd /, I think the SystemCaller tries to execute the whole thing as a single command.

 

 

This command run properly in CMD but not in FME:

 

 

cd C:\\Program Files (x86)\\WinRAR\\winrar x C:\\Users\\FME\\Desktop\\test_file.zip c:\\test

 

 


This command run properly in CMD but not in FME:

 

 

cd C:\Program Files (x86)\WinRAR\winrar x C:\Users\FME\Desktop\test_file.zip c:\test

 

 

I don't think so.

 

  • The leading "cd" is not necessary.
  • The file path should be quoted since the path contains spaces.
This command line should work with cmd.

 

"C:\Program Files (x86)\WinRAR\winrar" x C:\Users\FME\Desktop\test_file.zip c:\test
Also, when you execute the command line via the SystemCaller, you will have to quote the entire command line if a file path within it contains spaces.
""C:\Program Files (x86)\WinRAR\winrar" x C:\Users\FME\Desktop\test_file.zip c:\test"

 


I don't think so.

 

  • The leading "cd" is not necessary.
  • The file path should be quoted since the path contains spaces.
This command line should work with cmd.

 

"C:\Program Files (x86)\WinRAR\winrar" x C:\Users\FME\Desktop\test_file.zip c:\test
Also, when you execute the command line via the SystemCaller, you will have to quote the entire command line if a file path within it contains spaces.
""C:\Program Files (x86)\WinRAR\winrar" x C:\Users\FME\Desktop\test_file.zip c:\test"

 

Hi @takashi

 

 

Thank´s, work properly now!! I was missing something very silly for what I saw.

 

 

 


Unfortunately not! I´m using 2017 version. This transformer crash my workbench. I need to use command line.

 

 

The ZipExtractor should work in FME 2015.1.3.2+. If a translation has crashed causing by some issue in the transformer, I would have to fix it. Could you please post the log file logged when the translation crashed?

Reply