Page 1 of 1

7zip - Cannot find archive

Posted: 17 Sep 2012 06:22
by Nikroma
Im using 7zip
I want to extract a couple of ZIP files to different places and this should happen automatically without my intervention.

But sometimes the archives is not in place (reason not necessary) and then I get the error message "Can not find archive". This error I have to manually press OKAY

Is there any command that can bypass or press YES to the question?

Re: 7zip - Cannot find archive

Posted: 17 Sep 2012 09:13
by foxidrive
Use if exist to only perform the action if the file is there. Similar to this:


Code: Select all

if exist "file.7z" "c:\program files\7-zip\7z.exe"  x "file.7z"