Results 1 to 2 of 2

Thread: Changing file permissions of a directory and all contents

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Location
    St. Louis, MO
    Posts
    3

    Question 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.

  2. #2
    Addicted Member bgard68's Avatar
    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    164

    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
  •  



Click Here to Expand Forum to Full Width