Page 1 of 1

[TIP] Checking for open/locked files.

Posted: 26 Jul 2010 04:35
by miskox
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:

Code: Select all

move /y a.a a.a >nul 2>nul


returns ERRORLEVEL 1 if file is locked, 0 if not locked.

Saso