[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 543
  • Last Modified:

Script file to create a duplicate folder with a security and a new root name

I'm looking at create a script that copies a temporary directory and keeps the security premissions. what i need is something like this

robocopy.exe \\server1\folderstructure \\server2\folderstructure2 /SEC /MIR

i need the users to input the folderstructure2 name. EG they might want to call the folder job1 but all sub folders will be the same and security will be intact.
1 Solution
gwenossisAuthor Commented:
Fixed the issue thanks


set /P theuserinput="Enter the Job name: "

robocopy c:\Source c:\%theuserinput% /SEC /MIR


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now