Solved

Creating IIS Virtual Directory

Posted on 2008-10-07
1
1,000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

856 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