News:

MultiCommander v16.6 is released!

Main Menu

PackFiles. Trouble with OWERWRITEALL

Started by gms24ru, January 09, 2016, 08:59:22

Previous topic - Next topic

gms24ru

Script packing the focused directory in user defined target directory:
@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) .
Also this result received pack directory manual (Alt+F5) with matching file name exist archive (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.

pncdaspropagandas

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.