Open a zip file with my program

If you want to change directory and do stuff, and then change again, you need a batch file or a powershell script, not a shell execute command.

That’s what I said previously. You can either learn to use the shell in Interactive mode, which means your code is running asynchronously, or you can write out a batch script and s.Execute that.

1 Like

Thanks Tim.

I don’t know why I didn’t see your earlier response.
Put it down to my stupid.

Sorry for wasting your time with a repeat.

Regards

I believe I have long provided a fix in my zip classes for the missing MacDirID function.
Doesn’t the latest version on my website have that?
I cannot check right now because my main Mac isn’t running (hardware issues).

I suspect the topic I linked to started asking that question, but the OP doesn’t have such an issue anyway. I just wanted him to look at the package.
Reading the comments above, I don’t think Michael Cebasek has evaluated the TTZip option as yet.

I do not know how to use cd in a shell. I use full path.
Try this:

dim cbz, tmpdir, cmd7z as FolderItem
dim sh as new Shell
dim c as String

cmd7z = new FolderItem("pathto\7z.exe", FolderItem.PathModes.Native)
cbz = new FolderItem("pathto\myfile.cbz", FolderItem.PathModes.Native)
tmpdir = new FolderItem("pathtotmp", FolderItem.PathModes.Native)

c = cmd7z.ShellPath + " -o" + tmpdir.ShellPath + " x " + cbz.ShellPath
sh.Execute c