Ya, u can by using application variable
Code
if Application("FILELOCKED")<>"true" then
Application("FILELOCKED")="true"
'do stuff with the file
Application("FILELOCKED")="false"
end if
To make it wait for the lock, instead of IF...THEN, use DO...LOOP.
If you're going to have a lot of connections to your site, you need to make sure two people don't execute the filelock check at the same time, because both would show it was unlocked then both would try to lock it. To do that, you'll have to use Application.Lock.
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --