[TIP] Checking for open/locked files.
Posted: 26 Jul 2010 04:35
I was reading this http://www.dostips.com/DtTipsXCopy.php and there is something about locked files.
Another method which I am using is a move command:
returns ERRORLEVEL 1 if file is locked, 0 if not locked.
Saso
Another method which I am using is a move command:
Code: Select all
move /y a.a a.a >nul 2>nul
returns ERRORLEVEL 1 if file is locked, 0 if not locked.
Saso