Features
      Ask DevGuru
      ASP Resources
      Find the Bug
      Knowledge Base
      Links
      Tips of the Week
      Tutorials
  Products
      dgCalendar
      dgCharge New!
      dgChart New!
      dgFileUpload
      dgReport New!
      dgSort
      dgTree
  Site
      Authoring
      Coming Soon
      DevGuru Resume
      Link to Us
      Merchandise
      Sponsorships
      Testimonials
      What's New
  Technologies
      ADO 2.6
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      Transact-SQL Syntax
      VBScript
      WML
      WMLScript
      WSH
      XML DOM

              











METHOD:  FileSystemObject.GetAbsolutePathName

Implemented in version 2.0
 
object.GetAbsolutePathName(path)

This method returns the complete path from the root of the drive for the specified path string.

The following examples assume that the current directory is c:\DevGuru\website
Code:
<%
dim filesys, pathstring
set filesys=CreateObject("Scripting.FileSystemObject")
pathstring = filesys.GetAbsolutePathName("c:") %>


Output:
"c:\DevGuru\website"

Code:
<%
dim filesys, pathstring
set filesys=CreateObject("Scripting.FileSystemObject")
pathstring = filesys.GetAbsolutePathName("VBScript.html")
%>


Output:
"c:\DevGuru\website\VBScript.html"


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information