In java script I want to be able to unzip archives of type .zip and .rar contents to a specific folder then be able to work with those contents. Some of these will have a password.
I'm hoping the documentation will show how to pass a password. If I can't programmatically provide a password then I will have to come back later with questions about launching third-party programs with args.
The Copy command can be used to extract archives. For example, Copy HERE EXTRACT=sub would extract archives into folders below the current folder.
There's no way to give it a password, though.
You can run external commands via the same Command object you use to run Opus commands. (The Windows scripting objects also provide other ways to run commands, but are probably not important for this particular case.)
I found this:
" For external commands it only indicates whether or not Opus launched the command. If you need the exit code of an external command, use the WScript.Shell Run or Exec methods to run the command.) You can use the Results property to find out more information about the results of the command, and also discover which files (if any) failed using the failed property of each Item in the files collection."
I assume if I can figure out what all this means, then it will be safer to do it this way to makes sure that the program gives the correct exit code.
Edit: is wscript.shell on for vb? I am using jscript.