Is this for reading, writing or both
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog:
http://richardsiddaway.spaces.live.com/
PowerShell User Group:
http://www.get-psuguk.org.uk
"char1iecha1k" wrote:
> Hi,
>
> I would like to open a file for exclusive access for the duration of a
> script. If the script fails or finishes the lock must be released.
> This is to prevent another user or process from accessing the same
> data file. I have googled to no avail.
>
> Thanks in advance
>
>