Read\Write to Network Share using a Console App

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

How can I read, write and delete to a network share using a console
application?

I keep getting a security exception. I have read about FileIOPermission but
I don't understand how to use it with DirectoryInfo and FileInfo classes.
The permissions on the share are set to All users, Full Control. Example
code would be great!

Thanks !
 
Check to make sure you have Permission in the .Net framework. As a test
just give full right to your local intranet. Do this in the .Net framework
security wizard.

Chris
 
Back
Top