Is there an easy way to check to see if a file (in this case an Excel
spreadsheet) is being accessed by another user?



thanks

pete

Re: Checking file access by Fred

Fred
Sun Apr 13 21:57:46 CDT 2008

You can use the Low Level File Functions withing VFP.

nFH = FOPEN("c:\test.xls",1) && Open file Write Only, buffered

If nFH is a positive number, then the file is not used. Don't forget to
close the file handle.

FCLOSE(nFH)

--
Fred
Microsoft Visual FoxPro MVP


"Peter Huish" <huish@ozemail.com.au> wrote in message
news:MPG.226d513d5a61e8079896ed@news.easynews.com...
>
> Is there an easy way to check to see if a file (in this case an Excel
> spreadsheet) is being accessed by another user?
>
>
>
> thanks
>
> pete



Re: Checking file access by Peter

Peter
Tue Apr 15 03:07:07 CDT 2008

Thanks a lot, just what I needed


pete