File.Copy() to admin share

  • Thread starter Thread starter John Grandy
  • Start date Start date
J

John Grandy

I perform

File.Copy("\\machine1\c$\dir1\file1.txt","\\machine2\c$\dir1\file1.txt",true)

file1.txt shows up on machine2 with the "Read Only" attribute set

Does anyone know how to prevent this from happening?
 
Perhaps you could just change the read-only attribute as soon as it is written.
 

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