sloppycode.net
FSO Reference
Collections
Drives
Files
Folders
Drive
AvailableSpace
DriveLetter
DriveType
FileSystem
FreeSpace
IsReady
Path
RootFolder
SerialNumber
ShareName
TotalSize
VolumeName
File
Attributes
Copy
DateCreated
DateLastAccessed
DateLastModified
Delete
Drive
Move
Name
OpenAsTextStream
ParentFolder
Path
ShortName
ShortPath
Size
Type
Folder
Attributes
Copy
CreateTextFile
DateCreated
DateLastAccessed
DateLastModified
Delete
Drive
Files
IsRootFolder
Move
Name
ParentFolder
Path
ShortName
ShortPath
Size
SubFolders
Type
FSO
BuildPath
Collections
CopyFile
CopyFolder
CreateFolder
CreateTextFile
DeleteFile
DeleteFolder
Drive
DriveExists
Drives
File
FileExists
Folder
FolderExists
GetAbsolutePathName
GetBaseName
GetDrive
GetDriveName
GetExtensionName
GetFile
GetFileName
GetFileVersion
GetFolder
GetParentFolderName
GetSpecialFolder
GetTempName
MoveFile
MoveFolder
OpenTextFile
TextStream
TextStream
AtEndOfLine
AtEndOfStream
Close
Column
Line
Read
ReadAll
ReadLine
Skip
SkipLine
Write
WriteBlankLines
WriteLine
FSO.FileExists(filename)
Returns true if filename exists, false otherwise. filename should include a relative or absolute path, otherwise the file is looked for in the current directory
<% '***************** FileExists Set fsoObject = CreateObject("Scripting.FileSystemObject") if fsoObject.FileExists("mytextfile.txt") Then Response.Write "mytextile.txt found in current directory" End If if fsoObject.FileExists(Server.Mappath("\mytextfile.txt")) Then Response.Write "mytextile.txt found in web root directory of this website" End If if fsoObject.FileExists("C:\mytextfile.txt") Then Response.Write "mytextile.txt found in C:\" End If %>
› Home
› C#
› Snippets
› Articles
› Tools
› Taglines
› ASP
› Dictionary Object
› FSO
› Unix cheat sheet
› Gaming
› CSS
› Yak
› Umbraco
› About
› Contact
› Privacy
› Projects
› Search