Unzip a file
Hi Team,
Is there any possibility of unzipping a file from desktop and execute an action through PS.
Hi Team,
Is there any possibility of unzipping a file from desktop and execute an action through PS.
If you're familiar with command-line zip (see Unzipping Files Using Terminal | Mac Tricks And Tips for info), you can write the needed lines into a string and then pass it to the app.system() function, for instance:
var cmd = "cd ~/Desktop/srcFolder\n" +
"unzip -o test.zip -d ~/Desktop/destFolder";
app.system(cmd);
Hope this helps,
Davide
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.