Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Locking files in Windows OS

by kidd (Curate)
on Aug 02, 2002 at 21:03 UTC ( #187218=perlquestion: print w/ replies, xml ) Need Help??
kidd has asked for the wisdom of the Perl Monks concerning the following question:

Hello...

Until a few months ago I noticed the importance of locking your files when you read them or edit them...
So now I always use flock();. But I've been wanting to create my script so they can run either in UNIX and in Windows. At this time when your OS is Windows my scripts doesn't lock the files, and that is dangerous since the file can be opened by several users at the same time...
So I guess my question is..how can achieve something like flock(); for windows? Is there a module? A function I dont know?

Thanks...

Comment on Locking files in Windows OS
Select or Download Code
Re: Locking files in Windows OS
by DamnDirtyApe (Curate) on Aug 02, 2002 at 21:16 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://187218]
Approved by osfameron
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-12-25 16:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls