Computing.Net > Forums > Programming > Web Site creating with batch

Web Site creating with batch

Reply to Message Icon

Original Message
Name: renis
Date: July 19, 2007 at 02:47:46 Pacific
Subject: Web Site creating with batch
OS: XP
CPU/Ram: 2G
Model/Manufacturer: Pentium 4
Comment:

I have script which creates several Web Sites and vitual directories in these Web Sites. I run this script one time and everything is fine. When I run it next time it creates idle Web Sites with the same Name. Then I need to delete them once and again.
How can I do that this script do not creates Web Site if there already exist Web Site with the same Name?


Report Offensive Message For Removal


Response Number 1
Name: Razor2.3
Date: July 19, 2007 at 03:39:07 Pacific
Subject: Web Site creating with batch
Reply: (edit)

Play with this line:
IF EXIST someWebSite EXIT /B
It'll work if you have a physical file you can look for.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Web Site creating with batch

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge