Use extract command in custom folder

Hi Guys

Is it possible to use the extract command outside the __download like this:

move "__Download/6CF9376614FE7DDD304402EF69C83D1C406F1794" 
"__Download/compressedPackageData-201700011542.bftemp"

copy "__Download/compressedPackageData-201700011542.bftemp" "{parameter 
"SourceFolder"}compressedPackageData-201700011542.bftemp"

    parameter "SourceFolder" = "C:\x\"

    extract "{parameter "SourceFolder"}compressedPackageData-201700011542.bftemp" "{parameter "SourceFolder"}"

The move and the copy works, so the bftemp file is in the sourcefolder… but the extract fails…

Any ideas?

Thanks!

Your script defines SourceFolder after it tries to use it.

More fundamentally, the description of Extract I have says:

Extracts files from the specified archive in the download folder (__Download) and leaves the results in the same folder.

So I can see what you are trying to do (and why) but it won’t work because extract expects the source file to be in the __Download folder.

Thanks for the answer.
It’s from a big script, my parameter is in the beginning of it, so no worries about that.

And I thought something like that, but couldn’t find any documentation about it. I’ll try to work around it.

From V8.2 extract takes an optional second parameter.

Have you tried:

parameter "SourceFolder" = "C:\x\"

extract 6CF9376614FE7DDD304402EF69C83D1C406F1794 {parameter "SourceFolder"}
1 Like

I’ve changed the original extract path and that works. Thanks for your help!