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 !

Re: Read\Write to Network Share using a Console App by Chris,

Chris,
Thu Jan 27 10:21:46 CST 2005

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

"JustinS" <JustinS@discussions.microsoft.com> wrote in message
news:BF26F258-B88F-49CA-998C-E4EA1FE8126A@microsoft.com...
> 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 !