Solved

Creating IIS Virtual Directory

Posted on 2008-10-07
1
991 Views
Last Modified: 2013-11-14
I am distributing a web-based application (Classic ASP) that require to create a virtual directory.

I have created a .bat file to do the following steps (I used Wizard's Apprentice to add gui to my .bat file):
1. Check for IIS presence (if yes setup will goto next step else will display a msg and exit).
2. Install SQL Express Unattended (with named instanse)
3. Install SQL SP2 if the OS is not Windows XP
4. Copy My aplication files to a C:\MyApp
5. Attached the database to SQL Server
6. Add IIS Virtual Directory to IIS to map C:\MyApp folder and enable "Parent Paths" option <=== This is the problem now ===>

The problem is:

I need a command line script to do the following:

1. Create a Virtual Directory (Example path: C:\MyApp)
2. enable "Allow Parent Paths" option.

It will be appriciated if the code will be compatible with both Windows XP (IIS 6) and Vista (IIS 7).

Note: I don't want to copy the aaplication files to inetpub\wwwroot, becuase I try it but the customer is still need to involve with settings of the Virtual Directoy.

0
Comment
Question by:hazemfadl
1 Comment
 
LVL 23

Accepted Solution

by:
ComputerTechie earned 500 total points
ID: 22688960
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

747 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