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

file.exists

P: n/a
Hi all,

I have a problem with File.Exists function. I have windows xp, when I try to
execute the function to check wether a net
fiel exists or not (something like \\server\file.wav for example) I get no
error. The problem is... when I wait for 15 minutes (aproximately) without
doing anything else and I come back and click for the button of my test
applicattion to execute again
the function I have a delay of some seconds (6 aproximately)... Is this a
bug????
Thanks a lot,
Xavier Valdés
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Xavier,

Can you show the code and what is around that?

I assume that the user has proper rights to the directory that file is in?
Cor
Nov 21 '05 #2

P: n/a
Here is the code...Logged user has all permissions...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

If File.Exists("\\montsagre.dtvc.local\public\xavi2\a udio\fintocop.wav")
Then

MsgBox("OK!!!!")

End If

End Sub

"Cor Ligthert" <no************@planet.nl> escribió en el mensaje
news:O0**************@TK2MSFTNGP14.phx.gbl...
Xavier,

Can you show the code and what is around that?

I assume that the user has proper rights to the directory that file is in?
Cor

Nov 21 '05 #3

P: n/a
Xavier,

And did you try with explorer what files you see when you do this?

Cor
Nov 21 '05 #4

P: n/a
I think that you've not understood the problem at all...
I get the right effect ("OK") but it lasts a few seconds to perform the
opration...
So, I have to wait for about 5 seconds (more or less)...
It seems to be like some kind of sleep process (and it only happens with
net files)

Thanks,
Xavier Valdés

"Cor Ligthert" <no************@planet.nl> escribió en el mensaje
news:%2***************@TK2MSFTNGP15.phx.gbl...
Xavier,

And did you try with explorer what files you see when you do this?

Cor

Nov 21 '05 #5

P: n/a
Xavier,

And when you do it with Explorer how long does it than to see that file?
(from the start until that you see it)
Cor
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.