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

Posted on 2012-09-05
Last Modified: 2012-09-06
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.
Question by:gwenossis
    1 Comment

    Accepted Solution

    Fixed the issue thanks


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

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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
    How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
    Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now