Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Methods
FileSystemObject Object
METHOD: FileSystemObject.GetExtensionName
Implemented in version 2.0
object.
GetExtensionName
(path)
Used to return a string containing the extension name of the last component in a supplied path. If no component matches the supplied path string the
GetExtensionName
method will return an empty string.
Code:
<%
dim filesys, a
Set filesys = CreateObject("Scripting.FileSystemObject")
filesys.CreateTextFile "c:\DevGuru\website\VBScript.txt", True
a = filesys.GetExtensionName("c:\DevGuru\website\VBScript.txt")
Response.Write (a)
%>
Output:
"txt"
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information