C and S Design.
Search Friendly Programming and Design



ASP Predefined Constants

Constants for use with the FSO

The FSO (File System Object) predefined constants are simply a list of constants arranged into a single file that can be included into your existing project. Alternatively you could just hard code the value from below into your code or function.

CODE:
Get this Code: Click to download the ASP file.
Do not copy and paste the displayed code. The display function adds line breaks and numbers, so what you see is definitely not you would get. The continuation marker " _ " is used to indicate the break.
01:  _ 
	""""""""""""""""""'

02: ' Constants returned by Drive.DriveType
03:  _ 
	""""""""""""""""""'

04: Const DriveTypeRemovable = 1
05: Const DriveTypeFixed = 2
06: Const DriveTypeNetwork = 3
07: Const DriveTypeCDROM = 4
08: Const DriveTypeRAMDisk = 5

09:  _ 
	""""""""""""""""""'

10: ' Constants returned by File.Attributes
11:  _ 
	""""""""""""""""""'

12: Const FileAttrNormal   = 0
13: Const FileAttrReadOnly = 1
14: Const FileAttrHidden = 2
15: Const FileAttrSystem = 4
16: Const FileAttrVolume = 8
17: Const FileAttrDirectory = 16
18: Const FileAttrArchive = 32
19: Const FileAttrAlias = 1024
20: Const FileAttrCompressed = 2048

21:  _ 
	""""""""""""""""""'

22: ' Constants for opening files
23:  _ 
	""""""""""""""""""'

24: Const OpenFileForReading = 1
25: Const OpenFileForWriting = 2
26: Const OpenFileForAppending = 8

27:  _ 
	""""""""""""""""""'


Valid HTML 4.01! Valid CSS! copyright © C and S Design 2004 - 2005
Website Design and SE Friendly Coding C and S Design