|hi dear reno|
i should confess that i am surprised with your knowledge
thanks for helping me.and i should say that i have winrar in my drive C: installed myself
so i tried below script from your last post
@echo off & setlocal enabledelayedexpansion
for %%a in (*.rar) do (
rar lb -p- "%%a" >nul 2>&1
if !errorlevel!==0 (echo %%a - has no password) else (
if !errorlevel!==3 (echo %%a - password protected) else (
echo %%a - unknown error))
i copied 2 .rar file in a folder 1 password protected and the other no password protectd and tried this script.. but i have - unknown error message for both files ! should i copy all the recent post?
and as i mentioned i have a subfolder named "source"contained files i want not only detect password protected files and ignore them from being moved but also move the rest files that are not password protected can you write complete script?
files are different (rar zip and exe ) if winrar can't detect all of them at once ok at least (.rar) file would be enough
in this case half of them has being moved
thanks for your help