Hi can u pls add my code to do the ff:
1.extract the sample data.zip
2. make the input data based from the extracted sample data.zip
Here:
SystemApp winrar;
winrar.setArgument(pathconcat("../Sample data.zip"));
winrar.exec("WinRAR.exe");
Thanks
EXTRACTION
-
- Posts: 1851
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: EXTRACTION
Unless your .zip file is encrypted, you can do this without WinRAR by using the built-in function decompress: https://www.csprousers.org/help/CSPro/d ... ction.html
Re: EXTRACTION
Unfortunately, the .zip file is encrypted. Is there a way to hardcode the password for decompression?
Thanks again.
Thanks again.
Re: EXTRACTION
You could try the system app approach giving the correct command line arguents for WinRAR. While I have not tested this, something like this could work.
Please check WinRAR documentation for the commandline syntax.
Code: Select all
WinRAR x -pMyPassword "C:\Path\To\Encrypted.zip" "C:\Destination\Directory"