Virtual directory

Extensions ›› KLIP Responder ››
Arkance Systems Benelux

If response files get persisted on local server, you should provide means for persisted data packets to be visible to the outside clients. If you're using Internet Information Services (IIS), it is suggested that you use virtual directory for that purpose. Resulting file link, displayed in response e-mail message, points to prepared response data packet. Virtual directories is being managed by Internet Information System (IIS) Manager application.


Using Virtual Directories


A virtual directory is a friendly name, or alias, either for a physical directory on your server hard drive that does not reside in the home directory, or for the home directory on another computer. Because an alias is usually shorter than the path of the physical directory, it is more convenient for users to type. The use of aliases is also secure because users do not know where your files are physically located on the server and therefore cannot use that information to modify your files. Aliases also make it easier for you to move directories in your site. Rather than changing the URL for the directory, you change the mapping between the alias and the physical location of the directory.


Internet Information System (IIS) Manager


Please make distinction between following:



For example, if response data packet file name is file.zip:


Physical location

Domain prefix

Virtual directory

Resulting e-mail link

C:\Responses

http://www.mycompany.com

..\Data

http://www.mycompany.com/data/file.zip

D:\Projects\Responses

http://www.mycompany.com

..\Data

http://www.mycompany.com/data/file.zip

\\Path\Data

http://www.mycompany.com

..\Data

http://www.mycompany.com/data/file.zip

C:\Responses

http://www.mycompany.com/test

..\Data

http://www.mycompany.com/test/data/file.zip

D:\Projects\Responses

http://www.mycompany.com

..\Data\Folders

http://www.mycompany.com/data/folders/file.zip


There are three ways to create or delete a virtual directory:



You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /User:Administrative_AccountName"mmc %systemroot%\system32\inetsrv\iis.msc"


Create Virtual Directory Using Virtual Directory Creation Wizard


  1. In IIS Manager, double-click the local computer, double-click the Web site or FTP site to which you want to add a virtual directory, right-click the Web Site or folder within which you want to create the virtual directory, point to New, and then click Virtual Directory.
  2. Click Next.
  3. In the Alias box, type a name for the virtual directory, and then click Next. The alias is the name that the user types, and it should be short and easy to type.
  4. In the Directory box, type or browse to the physical directory in which the virtual directory resides, and then click Next.
  5. In the Access Permissions dialog box, set the access permissions appropriate to your needs.
  6. Click Next, and then click Finish.

Create Virtual Directory By Importing Configuration File


  1. In IIS Manager, double-click the Web site or FTP site to which you want to add a virtual directory, right-click the Web Site or folder within which you want to create the virtual directory, point to New, then click Virtual Directory (from file).
  2. Click Next.
  3. In the Import configuration box, click Browse and navigate to the file containing the virtual directory configuration to import.
  4. Click Read File, click the virtual directory configuration to import, and then click OK.


Create Virtual Directory Using Windows Explorer


  1. In Windows Explorer, browse to the folder where to want to create a virtual directory for your site, right-click the directory, and click Sharing and Security.
  2. Click the Web Sharing tab, and in the Share on list box, click the site for which you are creating a virtual directory, and click Share this folder.
  3. In the Alias box, type an alias name for this virtual directory.
  4. Set the Access permissions and Applications permissions by clicking the appropriate settings.
  5. Click OK, and then click OK again. You can verify that the virtual directory was created by starting IIS Manager and double-clicking the Web site.


You must be a member of the Administrators group on the local computer to run scripts and executables. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run your script or executable as an administrator. At a command prompt, type runas /profile /User:MyComputer\Administratorcmd to open a command window with administrator rights and then type cscript.exeScriptName (include the script's full path and any parameters).


Create Virtual Directory Using Administration Script


  1. From the Start menu, click Run.
  2. In the Open box, type cscript iisvdir.vbs /create "SampleWebSite" VirtualDirectoryNamex:\path. Substitute your Web site name, virtual directory name, and path to the physical directory as appropriate.
  3. Click OK.