[TIP] Checking for open/locked files.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
miskox
Posts: 630
Joined: 28 Jun 2010 03:46

[TIP] Checking for open/locked files.

#1 Post by miskox » 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:

Code: Select all

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


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

Saso

Post Reply