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.
Who is Participating?
gwenossisConnect With a Mentor Author Commented:
Fixed the issue thanks


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

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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.