Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8865817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:36:54+00:00 2026-06-14T16:36:54+00:00

A batch file for… Display: Enter the site name: e.g. web or test (the

  • 0

A batch file for…

Display:
Enter the site name: e.g. web or test (the path should be associated with them i.e. c:/inetpub/test or c:/inetpub/website )

Enter number of copies you want.. e.g. 20 (max 100)

function:
it will copying one directory(as the name specified test or website) to another with sub folders and files (in multiple folders) as specified times..
with folder name 1..2..3..4..5..6……99..100(path e.g. c:/inetpub/wwwroot/test/1 and /2 and /3…c:/inetpub/wwwroot/test/100)

*And adding sites into iis as specified times …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:36:55+00:00Added an answer on June 14, 2026 at 4:36 pm

    Insufficient data about home directory and destiny directory, make some changes if needed:

    @Echo OFF
    
    :Name_menu
    Set /P "Name=Enter the site name >>"
    IF NOT DEFINED NAME (Set "Name=" & GOTO:Name_menu)
    
    :Rounds_menu
    Set /P "Rounds=Enter number of copies you want (Max 100)>>"
    IF NOT DEFINED ROUNDS (Set "Rounds=Name" & GOTO:Rounds_menu)
    If %ROUNDS% GTR 99    (Set "Rounds="     & GOTO:Rounds_menu)
    
    
    :: I've assumed:
    :: home dir is the script's dir
    :: a folder with the name of the gived website name exists in home dir.
    :: you want destiny dir to be "c:\inetpub\wwwroot\" 
    FOR /L %%# in (0,1,%ROUNDS%) DO (
    MKDIR "c:\inetpub\wwwroot\%NAME%\%%#" >NUL
    XCOPY /E /Y ".\%NAME%\*" "c:\inetpub\wwwroot\%NAME%\%%#\"
    )
    
    :: About "And adding sites into iis as specified times ..."
    :: I don't know IIS and what you want, sorry.
    
    Pause&Exit
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a batch file that requires the user to enter a file path.
I want to run Batch file 1(Path C:\3rdparty\Test\App) from Batch file 2(C:) and VS2008.sln
I am having batch file called Formalbuild.bat ,It will take parameter name called componentName.
This batch file releases a build from TEST to LIVE. I want to add
Can a Windows batch file determine its own file name? For example, if I
the batch file: @echo. @set curdrive=%~d0 @path | %curdrive%\utils\sed -e s/PATH=// | %curdrive%\utils\tr ;
I'm running a batch file from some ASP.NET/C# code on a web server. Basically
I have a simple batch file like this: echo off taskkill /im test.exe /f
I have a batch file with the following 2 lines and change them into
I have a batch file: @echo off cd %AppData%\.minecraft start javaw -Xms1024m -Xmx1024m -Djava.library.path=\bin\natives

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.