The following works perfectly in Mac OS X Terminal:
unzip -jq ~/Desktop/filename.zip pathToFile -d ~/Desktop/testFolder
How can I accomplish this simple task using Xojo? Documentation on using shell commands in Xojo seems scarce. Frustration has been building up. Many thanks in advance!
[quote=208515:@Bio Logic]The following works perfectly in Mac OS X Terminal:
unzip -jq ~/Desktop/filename.zip pathToFile -d ~/Desktop/testFolder
How can I accomplish this simple task using Xojo? Documentation on using shell commands in Xojo seems scarce. Frustration has been building up. Many thanks in advance![/quote]
Use the full path to UNZIP
/usr/bin/unzip
a Shell is not Terminal and it does not have all the env vars and paths for locating apps set up like terminal
Thank you Michel. Then I will add “Shell.Close” each time I do a Shell command (when finish). As it’s the normal way to do. It’s the same as “For MyVar = 1 to 10”, a simple “Next” is enough but I always write “Next MyVar”.