Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

ASP GetDriveName Method


❮ 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:

❮ Complete FileSystemObject Object Reference