|
-
Mar 20th, 2006, 01:02 PM
#1
Thread Starter
New Member
Changing file permissions of a directory and all contents
I have written a program to copy files from one location to another for making backups of customers data to give to them. However I want to be able to change file permissions on files so that they wont run into any "Access is Denied" errors when trying to use it on another machine. What would be the easiest way to accomplish this? I need it to be able to do the following:
a) get the current owner of the file to be displayed.
b) change the owner of file to current user.
c) change file permissions to give full control to everyone.
I am using VB .NET 2005, any help would be appreciated.
-
Mar 21st, 2006, 09:07 AM
#2
Addicted Member
Re: Changing file permissions of a directory and all contents
I dont know about giving access to everyone on a file, but I have ran into an issue
where a lot of developers were working on a project which consisted of other projects and classes and when I tried to run it, it was a web application, IIS had an issue with it.
The only way I was able to solve the problem was by using a program called Zone Stripper, which evidently I could solve the problem by right clicking on each file and give access, however, there was no recursive function to do this.
I had to use a program called ZoneStripper.
CheckOut:
http://www.jameskovacs.com/blog/Perm...8-5f9efe2a79c7
Using Framework 1.1, VB.Net 2003 unless I
state otherwise 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|