Remote Folder

D

Daniel E. Ulfe

Hi,

I have a small problem... I have an application that copy files from one
computer to another (very simple), but... when I try to check a folder in
the remote computer using:

System.IO.Directory.Exists("\\remote\drive\folder\")

If the local computer tried to get to this folder using Windows Explorer
before to run my program, it works (return TRUE), if not, that fails (return
FALSE)

Any idea why?... Any workaround or solution?

Thank you,
Daniel.
 
G

Guest

Hi

Have you try to map a network drive? I always use mapped network drive and I don't have any problem of this kind

Hope this will help.
 
D

Daniel E. Ulfe

Hi,

If a map it to a network drive... It works... But I really do not want to do
that... For only simple reason... If the user delete that drive my program
is not going to work... And you know how are the users...

Thank you for the recommendation...
Daniel.

Eric said:
Hi,

Have you try to map a network drive? I always use mapped network drive and
I don't have any problem of this kind.
 

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

Top