File Copy Error in 2008

R

Rick

The following code returns a permission error:
Access to path "\\myServer\temp\test.txt" denied

source = "\\myServer\temp\test.txt"
dest = "c:\MyLocalMachine\test.txt"
System.IO.File.Copy(source, dest)

I am able to view files in "\\myServer\temp\test.txt" but do not have
permission to copy.
 
C

Cor Ligthert[MVP]

Yes I agree with you, it is great that not everybody can simply attach to
your server without permission and that you can set that.
 

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