PDA

View Full Version : Zip a folder using MEL script


mujeesh
05-20-2010, 07:47 AM
Hello ,

I am just trying to zip a project folder using mel script.But i am not able to do that.
I am trying this code ,i dont know how many % it is right or fully wrong.I am pasting the code i am using please give me a way to solve this problem.I am just a beginner

string $systemStr;

//My priject folder is "new"

$systemStr = " -rpex E:/PROJECTS/new.rar\"";
$systemStr = $systemStr +`internalVar -uwd`;
$systemStr = $systemStr + "*.*\"";

system ("start C:/Program Files/WinRaR/RAR.exe" + $systemStr);

Grand45
06-14-2010, 05:26 PM
I know that the same can done with php. Look php tutorial (http://phpforms.net/tutorial/tutorial.html).

Blackstone
07-06-2010, 01:53 AM
Why not Python ? There is a zip module in it.

Kel Solaar
07-06-2010, 06:43 AM
If you want to debug that kind of system commands the easiest is to print the full command in the script editor, paste it in the command line of your windows shell and see what happens.

KS

CGTalk Moderation
07-06-2010, 06:43 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.