Version: 2.0
This method gets the complete path from the root of the drive for the specified path string.
<%
dim filesys, pathstring
set filesys=CreateObject("Scripting.FileSystemObject")
pathstring = filesys.GetAbsolutePathName("c:")
%>
"c:\DevGuru\website"
This example assumes that the current directory is c:\DevGuru\website
<%
dim filesys, pathstring
set filesys=CreateObject("Scripting.FileSystemObject")
pathstring = filesys.GetAbsolutePathName("VBScript.html")
%>
"c:\DevGuru\website\VBScript.html"
This example assumes that the current directory is c:\DevGuru\website