Author Topic: PackFiles. Trouble with OWERWRITEALL  (Read 27882 times)

gms24ru

  • Newbie
  • *
  • Posts: 8
    • View Profile
PackFiles. Trouble with OWERWRITEALL
« 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) .
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

  • Contributor
  • Active Member
  • *****
  • Posts: 93
    • View Profile
Re: PackFiles. Trouble with OWERWRITEALL
« Reply #1 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.