X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP GetDriveName Method


FileSystemObject Object Reference Complete FileSystemObject Object Reference

The GetDriveName method returns a string that contains the drive name of the specified path.

Syntax

FileSystemObject.GetDriveName(path)

Parameter Description
path Required. The path that will return a drive name

Example

<%
dim fs,dname
set fs=Server.CreateObject("Scripting.FileSystemObject")
dname=fs.GetDriveName("c:\test\test.htm")
Response.Write(dname)
set fs=nothing
%>

Output:

c:


FileSystemObject Object Reference Complete FileSystemObject Object Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook