By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,652 Members | 1,756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,652 IT Pros & Developers. It's quick & easy.

howto check if somebody allready opened a file (in a network)

P: n/a
Hi There,

my vb app can open files. Well, actually my vb app launches word or excell
to open them.
These files are shared in a network.

If somebody else has allready opened that file, you must get a requester
that says the file is temporarily unavaillable because it is edited somewere
else.

How do you test if somebody has allready opened that file?

I'll check this group regular basis......

Best regards,

Martijn

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Try:

Obtaining Open File Information from Another Machine
Use NetFileEnum to return a listing of open files and owners on remote
machines.
http://vbnet.mvps.org/code/network/netfileenum.htm

Note however this method is valid only on Windows NT4 / Windows 2000 /
Windows XP or later.

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"martijn" <ma**********@wanadoo.nl> wrote in message
news:40***********************@news.wanadoo.nl...
: Hi There,
:
: my vb app can open files. Well, actually my vb app launches word or excell
: to open them.
: These files are shared in a network.
:
: If somebody else has allready opened that file, you must get a requester
: that says the file is temporarily unavaillable because it is edited
somewere
: else.
:
: How do you test if somebody has allready opened that file?
:
: I'll check this group regular basis......
:
: Best regards,
:
: Martijn
:
:
:

Jul 17 '05 #2

P: n/a
gonna try it, will let the group know... thanks!!

"Randy Birch" <rg************@mvps.org> schreef in bericht
news:6I***************@news04.bloor.is.net.cable.r ogers.com...
Try:

Obtaining Open File Information from Another Machine
Use NetFileEnum to return a listing of open files and owners on remote
machines.
http://vbnet.mvps.org/code/network/netfileenum.htm

Note however this method is valid only on Windows NT4 / Windows 2000 /
Windows XP or later.

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"martijn" <ma**********@wanadoo.nl> wrote in message
news:40***********************@news.wanadoo.nl...
: Hi There,
:
: my vb app can open files. Well, actually my vb app launches word or excell : to open them.
: These files are shared in a network.
:
: If somebody else has allready opened that file, you must get a requester
: that says the file is temporarily unavaillable because it is edited
somewere
: else.
:
: How do you test if somebody has allready opened that file?
:
: I'll check this group regular basis......
:
: Best regards,
:
: Martijn
:
:
:

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.