View Single Post
  #4  
Old 08-14-2006, 01:06 PM
rement rement is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rement is on a distinguished road
Default

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 --
Reply With Quote
  Webmaster Forums - View Single Post - reciprocal link requests with automated software?
View Single Post
  #4  
Old 08-14-2006, 01:06 PM
rement rement is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rement is on a distinguished road
Default

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 --
Reply With Quote