file.exists

  • Thread starter Thread starter Xavier Valdés
  • Start date Start date
X

Xavier Valdés

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
 
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
 
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\audio\fintocop.wav")
Then

MsgBox("OK!!!!")

End If

End Sub
 
Xavier,

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

Cor
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top