Multi Commander > Script

PackFiles. Trouble with OWERWRITEALL

(1/1)

gms24ru:
Script packing the focused directory in user defined target directory:

--- Code: ---@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");
--- End code ---
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.

Navigation

[0] Message Index

Go to full version