Tutorial-Web Home > The FileSystem Object > The File Object

Object Menu

Drive
File
Attributes
DateCreated
DateLastAccessed
DateLastModified
Drive
Name
ParentFolder
Path
ShortName
ShortPath
Size
Type
Copy
Delete
Move
OpenAsTextStream
Folder
FileSystem
TextStream

 


 
ShortName
TypeRead-Only Property
Return Value TypeString
Usageobject.ShortName(FileName)
DescriptionDetermines the ISO9660 filename of the file. This is the name the file would have under an old MS-DOS FAT16 convention.
ExampleCode:
filename="c:\test\testthisfile.htm"
Set fso = CreateObject("Scripting.FileSystemObject")
set mainfile=fso.GetFile(filename)
response.write mainfile.ShortName

Result:
testth~1.htm

The Bookworm
Search the Tutorial-Web library for books on any topic!
Sponsors

Search Now:
In Association with Amazon.com