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.
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