Solved

Creating IIS Virtual Directory

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DHCP lease duration / Migration 8 53
copying evtx files while system is running 2 61
SBS 2011 Backup Drive 8 30
Create workstation base image 4 39
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

810 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