Setting permissions after Filesystem.MoveDirectory?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jesse

    #1

    Setting permissions after Filesystem.MoveDirectory?

    I've got two directories on the same server, like this:

    \Public [everyone can read/write]


    \Private [only Joe can read/write]



    I want to move the directory \Private\myDir into \Public. After I move it, I
    want it to inherit access permissions from \Public, so everyone can
    read/write the files in \Public\myDir. I try:

    My.Computer.Fil eSystem.MoveDir ectory ("\Private\myDi r", "\Public")

    ....but now I get \Public\myDir -- with the permissions from Private (only
    Joe can read/write). It doesn't inherit the new parent folder's permissions.
    Copying the directory is not an option; it's too big.

    What's the right way to do this?

    Thanks!


    --



Working...