Multi Commander Support Forum

Multi Commander => Script => Topic started by: gms24ru on January 09, 2016, 08:59:22

Title: PackFiles. Trouble with OWERWRITEALL
Post by: gms24ru on January 09, 2016, 08:59:22
Script packing the focused directory in user defined target directory:
Code: [Select]
@var $strArhPath = GetSourceFocusPath()
@var $strName = GetSourceFocusName()
@var $strArhName = 'C:\temp\'+$strName+'.7z'
//if(FileExists($strArhName)==1)
//{
//DeleteFile($strArhName, "NODIALOG, NOPROGRESS, SILENT");
//}
PackFile($strArhName, $strArhPath, "*.*", "7-Zip", "NOWAIT, OVERWRITEALL");
If archive exists, then constantly repeat dialog box action with file (dialog.png) (http://dialog.png).
Also this result received pack directory manual (Alt+F5) with matching file name exist archive (filename.png) (http://filename.png).
I have to first remove the file, and then pack (in script disabled for demonstration).
How to do the rewriting without additional script function?
Please help me resolving problem.
Title: Re: PackFiles. Trouble with OWERWRITEALL
Post by: pncdaspropagandas on August 09, 2017, 19:33:46
I was writting a similar script and got the same error. If the archive file already exists it keeps asking about overwrite infinitely, event if I choose to Replace or Replace All.