Question : Batch Script - Duplicate then rename directory

Hi,
I want to write a script that my users can run to do the following

User enters new {foldername}
Duplicate directory and files in \\server\template
Rename to {foldername}
Move {foldername} to \\server\clients\

Is this possible without additional software?

Any suggestions appreciated.

Answer : Batch Script - Duplicate then rename directory

Easily.

But why not just create the new folder on \\server\clients instead of creating it locally and then moving it a little later?


REM Prompt user for a folder name
SET /P NewFolder=Please Enter Folder Name:
REM Check if folder already exists - if not, create it.
IF NOT EXIST "\\server\clients\%NewFolder%" MD "\\server\clients\%NewFolder%"
REM Duplicate files in the template share in the specified folder, forcing overwrite if any already exist.
COPY "\\Server\Template\*.*" "\\server\clients\%newfolder%" /Y
Random Solutions  
 
programming4us programming4us