From http://www.w3schools.com (Copyright Refsnes Data)
Complete FileSystemObject Object Reference
The GetAbsolutePathName method returns the complete path from the root of the drive for the specified path.
| FileSystemObject.GetAbsolutePathName(path) |
| Parameter | Description |
|---|---|
| path | Required. The path to change to a complete path |
|
<% dim fs,path set fs=Server.CreateObject("Scripting.FileSystemObject") path=fs.GetAbsolutePathName("c:") response.write(path) %> Output: c:\temp\test |
|
<% dim fs,path set fs=Server.CreateObject("Scripting.FileSystemObject") path=fs.GetAbsolutePathName("mydoc.txt") response.write(path) %> Output: c:\temp\test\mydoc.txt |
|
<% dim fs,path set fs=Server.CreateObject("Scripting.FileSystemObject") path=fs.GetAbsolutePathName("private\mydoc.txt") response.write(path) %> Output: c:\temp\test\private\mydoc.txt |
Complete FileSystemObject Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)