Question Locked

Script for copying folders with NTFS permissions

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
i'm looking for a script (in vbscript) that can copy a specific folder (that i browse for it)
with it's NTFS permissions, to a differnt folder.
the reson being that i have a folder with subfolders and complex uninheritable permissions on it that i need to copy.
i tried using xcopy but it's not that helpfull
since the file names are in hebrew.
can anyone help?

7 replies

by lowlands

Robocopy with the /COPYALL switch is probably what would be easiest to use.

You can call the actually robocopy piece from within vbscript by using WScript.shell

by blazinride

You can backup the folder, and then restore it to the location you want with the permissions still intact

by jameshsh

This easily can be done with Secure Copy. It has an option to migrate all of the permissions and shares while copying the files. You don't need to recreate them manualy. This tool has a gui interface and you can copy all of the files & folders even the ones with long filenames.
http://www.scriptlogic.com/products/securecopy/

by patrick

I wrote a script using xcopy to copy a "template" folder with all the set permissions to a new directory anywhere on the network. It works great and its free.

Here it is, copy it to a text file,replace the names of the folders with your own save the file as xcopy.bat or whatever you want.

xcopy \\Server\Containing Folder\~Template \\New Server\New Containing Folder\New Folder Name /O/X/E/H/K/i

by dke64

I recommend Copyrite XP
http://copyrite.dyndns.biz.

I use it on my servers all the time and it is really easy to understand.

Nothing to instll either. Just copy the exe and robocopy to the server and go.

Check out the screenshots and you'll understand.

Dave

This discussion is closed to new replies.