Copy Files from one drive to another

  • Thread starter Thread starter Dali
  • Start date Start date
D

Dali

I am trying to copy few folders from one drive to
another.

Anybody know how to copy folders so that the shares setup
get copied to the new drive.

For instance, the folder call "dali" is shared as "test"
and I want to move the "dali" folder from 'C' to 'D' such
a way that on "D" drive the doali folder get copied and
shared as "test" and permission setup is still there.

Thanks
Dali
 
use robocopy to move the files with ACLs. moving the shares isn't
possible in this way. make your live easier in futire and only create
shares with same dir names. then you are able to script this, too. for
e.g. if you have 10.000 userdirs in a subdir you are able to share all
of them with the same name as the dir with a simple "for" and net share
or subinacl within seconds.


Alex
 
Share definitions are not stored with the filesystem.

Share definitions are stored in the registry, under
hklm\system\currentcontrolset\services\lanmanserver\shares.

If you want to move the underlying storage of a share from one location to
another, you can edit the path to the share in the registry. (Standard
you-can-really-mess-up-your-computer-if-you-do-this disclaimer applies. I'd
advocate a system state backup at the least.)

As Alex suggests, use a tool such as robocopy to copy the files and retain
security permissions.

-Matt
 
Back
Top