Page 1 of 1

Problem with copyfile() and archive

Posted: Thu Sep 21, 2023 10:48 am
by papiosaur
Hello,

i would like to copy a LHA archive to a destination but CopyFile() command extract files...

An idea please ?

Re: Problem with copyfile() and archive

Posted: Thu Sep 21, 2023 2:10 pm
by jPV
You have probably installed the XAD plugin globally with the InstallAdapter option (like @REQUIRE "xad", {InstallAdapter = True}), and that's why it uses XAD for CopyFile() too.

You can now bypass that globally installed adapter by using CopyFile() with the Inbuilt adapter like this:
CopyFile("archive.lha", "destination", {Adapter="Inbuilt"})

Other option is to disable the global adapter and then use {Adapter = "xad"} with CopyFile() only when you really need to extract archives.

Re: Problem with copyfile() and archive

Posted: Thu Sep 21, 2023 2:36 pm
by papiosaur
Thanks jPV!!!