471,325 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Moving files to a shared folder

Hi,

I am writing some C# code that moves files from a source folder to a
target folder on the same machine. However, if the target folder is a
shared folder, using the File.MoveTo method alone does not cause the
files to be shared as well. How can I make the moved files inherit the
parent folder's shared setting? I have looked into the
System.Security.Permissions.FileIOPermission class but it doesn't seem
to do what I'm looking for. I'm pretty new to .NET development so any
help would be appreciated.
Jul 21 '05 #1
1 2186
Hubert Wong wrote:
Hi,

I am writing some C# code that moves files from a source folder to a
target folder on the same machine. However, if the target folder is a
shared folder, using the File.MoveTo method alone does not cause the
files to be shared as well. How can I make the moved files inherit the
parent folder's shared setting? I have looked into the
System.Security.Permissions.FileIOPermission class but it doesn't seem
to do what I'm looking for. I'm pretty new to .NET development so any
help would be appreciated.


Never mind, I figured it out using the libary here:
http://www.codeproject.com/dotnet/NTSecurityNET.asp
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Stephen Ghelerter | last post: by
2 posts views Thread by Dan Baker | last post: by
5 posts views Thread by Jim Heavey | last post: by
1 post views Thread by Hubert Wong | last post: by
2 posts views Thread by ogo796 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.