File Copy Error in 2008

  • Thread starter Thread starter Rick
  • Start date Start date
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.
 
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.
 
Back
Top