View Single Post
Old 17th July 2007, 11:36   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
code:
!include LogicLib.nsh
...
ClearErrors
FileOpen $R0 "C:\file.txt" w
${If} ${Errors}
# File is locked.
${Else}
FileClose $R0
${EndIf}



If you want to know what program is locking the file, use the LockedList plug-in (Windows NT4+ only).

Stu
Afrow UK is offline   Reply With Quote