Documente Academic
Documente Profesional
Documente Cultură
Objectives
Exercise 1
Comparing Client Side and Server Side
Scripts
In this exercise, you will create client side and server side script files, comparing the behavior of each.
The purpose of this exercise is to demonstrate similarities and differences between server script and client
script, not code structure. Exercises in subsequent lessons will focus on more closely on the code.
1. To create the client side script example:
• Launch NOTEPAD.EXE and insert the following code example into a new document.
<HTML>
<BODY>
This is a simple VBScript Demo.
It calculates the number of days until the end of the year.
<Script Language="VBScript">
<!--
Sub Window_OnLoad
Dim iTargetYear, dTargetDate, iDateDiff
iTargetYear=Year(Date())
dTargetDate=DateSerial(iTargetYear,12,31)
iDateDiff=DateDiff("d",Date(),dTargetDate)
Msgbox "Today's date is " & Date()
Msgbox iDateDiff & " more days to year end."
End Sub
-->
</Script>
</Body>
</HTML>
• Save the file as C:\INETPUB\WWWROOT\CLIENTDEMO.HTM.
• Launch Microsoft Internet Explorer and test the sample by browsing
HTTP://LocalHost/CLIENTDEMO.HTM. Allow the program to complete, dismissing the message box
by clicking the button marked “OK”.
• In IE, view the HTML source of the client program by selecting the Source menu item from the View
menu.
What information is available in the Source? Is the script code visible? With what event is the script
associated (hint: look at the name of the sub procedure).
<%
Dim iTargetYear, dTargetDate, iDateDiff
iTargetYear=Year(Date())
dTargetDate=DateSerial(iTargetYear,12,31)
iDateDiff=DateDiff("d",Date(),dTargetDate)
Response.Write "Today's date is " & Date() & ".<BR>"
Response.Write iDateDiff & " more days to year end."
%>
</BODY>
</HTML>
• Save the file as C:\INETPUB\WWWROOT\SERVERDEMO.ASP.
• Launch Microsoft Internet Explorer and test the sample by browsing
http://localhost/SERVERDEMO.ASP. Allow the program to complete, dismissing the message box by
clicking the button marked “OK”.
• In IE, view the HTML source of the client program by selecting the Source menu item from the View
menu.
What information is available in the Source? Is the script code visible? Will the script run if the extension
of the file is changed to HTM?
iTargetYear=Year(Date())
dTargetDate=DateSerial(iTargetYear,12,31)
iDateDiff=DateDiff("d",Date(),dTargetDate)
%>
<Script Language="VBScript">
<!--
Sub Window_OnLoad
MsgBox "Today's date is <%=Date()%>."
MsgBox "<%=iDateDiff%> more days 'til year end."
End Sub
-->
</Script>
</BODY>
</HTML>
Objectives
Recommended Reading
•
Lab Setup
Copy all files from the student lab disk to a folder called LABS, located in the root directory of your C:
drive.
Exercise 1
Configuring Applications
In this exercise, you will create a new virtual directory that will be used throughout later exercises. You will
examine settings available through IIS 4.0 Property sheets and configure the new virtual directory as an
isolated application.
4. To launch Microsoft Internet Service Manager
• From the Start Menu, open the Programs group.
• Open the Windows NT 4.0 Option Pack group in the Programs group.
• Open the Microsoft Internet Information Server in the Windows NT 4.0 Option Pack.
• Select Internet Service Manager.
• Click on the button labeled “Close” to dismiss the Tip of the Day dialog.
5. To create a new virtual directory:
• In MMC’s scope pane (the left most window pane), navigate to Default Web Site as shown below.
• From the Action menu, select New and choose Virtual Directory from the submenu. This should launch
the New Virtual Directory Wizard.
• Step through the wizard using the Next button, providing the following information as shown in each of
the following screen shots:
• Click the Finish button to complete the creation of the new Virtual directory.
Internet Service Manager should automatically mark the new Virtual Directory as an application.
• To test the new virtual directory, launch Microsoft Internet Explorer and browse
HTTP://LocalHost/Labs/Default.ASP.
Exercise 2
Using Various Authentication Methods
In this exercise, you will create a new NT user account that will provide restricted access to the web site
and restrict anonymous access. Additionally, you will determine the NT user account used by IIS 4.0 as the
default anonymous user account.
43192.To create a new user account under NT:
• From Window NT’s Start menu, open the Programs group.
• Open the Administrative Tools (Common) group in the Programs group.
• Select User Manager for Domains.
• From the User menu, select the “New User…” menu item.
• Fill in the New User dialog as shown below. Be sure to remove any checks in the checkboxes for
Password options and Account disabled.
Note: The password will actually show up as a series of asterisks(*) for security purposes.
• Click the button labeled “Add”.
• Click the button labeled “Close”.
• From the User menu, select the Exit menu item.
• Click the edit button located in the Anonymous Access and Authentication Control section. This will
display the Authentication Methods dialog.
• Clear and set the options for the authentication methods as shown in the image below. Ensure that only
Basic Authentication is enabled.
Note: When enabling the Basic Authentication option you will receive a message from Internet Service
Manager in a dialog. Read the warning, then dismiss this dialog box by clicking the button labeled "OK".
• Click the button labeled “OK” to dismiss the Authentication Methods dialog.
• Click the button labeled “OK” to dismiss the Web Site property sheet.
If you receive an "Inheritance Override" dialog asking which child nodes should inherit the authentication
method, click the button labeled "OK".
• Test the authentication method by browsing HTTP://LocalHost from within Microsoft Internet Explorer.
(If necessary, launch Internet Explorer.)
• When prompted for authentication the first time, click the button marked “Cancel” to bypass the login to
the web page.
What is the browser’s response?
• Refresh the web page using the toolbutton marked “Refresh”. When prompted for authentication, type
“BasicUser” as the User Name and “password” as the Password. Do not type the quotes for either User
Name or Password. Click the button marked “OK” to accept the user name and password.
Is access granted to the web site?
Objectives
Recommended Reading
•
Exercise 1
Creating a Guest Book with Visual Interdev
In this exercise, you will create a guest book application using Visual Interdev. For the guest book to
function properly, you will need to create a new project in Visual Interdev, provide access to a data source
used to hold the guest information, and run the data form wizard to create the forms, HTML and ASP script
that provides access to the guest book information.
43195.To create a new project:
• From the File menu, select “New…”.
•
• Click the button labeled “Finish”.
•
• SelectSwitch to the Machine Data Source tab.
• Select the data source “AdvWorks” and click on the button labeled “OK”.
•
• Click on the button labeled “Next”.
•
• Click on the button labeled “Next”.
•
• Click on the button labeled “Next”
•
• Click on the button labeled “Next”.
•
• Click on the button labeled “Next”.
If Time Permits
Using Visual Interdev Wizards
Data Connections provide access to external data sources. Through a data connection, you can add, delete
or modify values in the underlying data. Additionally, you can create database diagrams displaying
relationships between tables, view stored procedures, create new objects and edit object properties. Take
some time to explore the Data View tab of the workspace. This tab is available anytime a data connection
exists in the current workspace.
Exercise 2
Debugging ActiveX Server Pages
In this exercise, you will use the Script Debugger to trouble script errors.
In order to use the script debugger with IIS 4.0, it is necessary to enable server side script debugging within
Internet Service Manager.
• Open Microsoft Internet Explorer and browse the URL HTTP://LocalHost/Labs/Lab3/Broken.ASP. It
should display an error message within the browser.
43352.To enable server side debugging:
• Launch Internet Service Manager.
• Display the property sheet for the Lab3 folder found in the Labs application under the default web site.
Create an application using Lab3 as the application root.
• Once Lab3 is marked as an application, the button marked "Configure" will be enabled in the property
sheets dialog. Click the Configure button to display the Application Configuration dialog.
• Switch to the App Debugging tab of the Application Configuration dialog
• Enable server-side script debugging by placing a check in the checkbox next to the label "Enable ASP
server-side script debugging".
• Click on the button labeled "OK" to dismiss the Application Configuration dialog.
• Click on the button labeled "OK" to dismiss the Property Sheets dialog.
• Double click on broken.asp in the Running Documents window. This should open a read-only copy of the
newest version of broken.asp.
It appears that Broken.ASP is printing the wrong message for the current time of day.
Objectives
Recommended Reading
• Windows NT 4.0 Option Pack Documentation.
Exercise 1
Using the Response and Request objects
In this exercise, you will use the Request object in order to retrieve HTTP server variables for the current
session. Server variables contain information about both the server and the browser, which can be used to
perform scripts when a server variable matches a value determined by the web developer.
In the first exercise, you will create a table that lists the server variables available with their associated
values, and add an image tag to the end of the file that determines which of two languages your browser
supports.
In the second half of the exercise, you will create an ASP page that will automatically redirect the browser
to a new web page dependent upon which language their browser is setup.
43354.To display the server variables in a web page:
• Launch NOTEPAD.EXE or Microsoft Visual Interdev and insert the script on the following page into a
new file:
<HTML>
<BODY>
<Table border=2>
<TR><TH>Name</TH><TH>Value</TH>
<%'Loop through all values and print in table
For each objsvar in Request.ServerVariables
Response.Write "<TR><TD>"
Response.Write objsvar
Response.Write "</TD><TD>"
Response.Write Request.ServerVariables(objsvar)
Response.Write "</TD></TR>"
Next%>
</TABLE>
<%'Check for English US or GB to see which flag to show
Language=Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")
If Language="en-us" then
sFlagGIF="USA.GIF"
ElseIf Language="en-gb" Then
sFlagGif="UK.GIF"
Else
sFlagGIF=""
End If%>
Welcome!<BR>
<IMG SRC="../Images/<%=sFlagGif%>">
</BODY>
</HTML>
What are the two methods this code uses to send information back to the browser?
• Save the file as C:\Labs\Lab4\ServerVariables.ASP.
• Test the script by browsing HTTP://LocalHost/Labs/Lab4/ServerVariables.ASP.
Which flag is displayed at the bottom of the page?
In Microsoft Internet Explorer, change the browser’s default language from US English to British
English:
43355.To change Explorer’s default language:
• Select “Internet Options” from the View menu in Internet Explorer.
• Click on the button labeled “Languages” found on the General tab.
• Remove any languages listed in the language listbox by highlighting the language and clicking the button
labeled “Remove”.
• Click the button labeled “Add”. Select the line that reads “English (British) [en-gb] and click on the
button labeled “OK”.
• Click the button labeled “OK” to dismiss the language dialog box.
• Click the button labeled “OK” to dismiss the Internet Options dialog box.
• Refresh the current page by clicking on the toolbutton labeled “Refresh”.
What flag is now displayed at the bottom of the page?
Response.Redirect NewSite
%>
</BODY>
</HTML>
Exercise 2
Retrieving values from forms using the Post
Method
In this exercise, you will use the post method to retrieve data from information supplied by a user by way
of a form.
10460.To create a user form:
• Open UsingPost.htm in either Notepad.exe or Visual Interdev. This file is found in the C:\Labs\Labs4
folder.
• Modify the <FORM> tag to match the <FORM> tag listed below:
<FORM method="Post" action="ProcessPost.asp">
• What does the action argument identify?
Can you identify the text boxes and their names?
• Save the changes for this file.
10461.To retrieve user data:
• Create a new text file using either NOTEPAD.EXE or ASP file using Visual Interdev.
• Insert the script listed below into the new text file.
<HTML>
<BODY>
<%
sResponse1=Request("text1") & "<BR>"
sResponse2=Server.HTMLEncode(Request("text2")) & "<BR>"
%>
</BODY>
</HTML>
• Save the new file as ProcessPost.asp in the C:\Labs\Lab4 folder.
• Test the application by browsing the following URL in Microsoft Internet Explorer:
HTTP://LocalHost/Labs/Lab4/UsingPost.HTM.
• In both Text1 and Text2 text boxes, type “<B>HELLO</B>” (without the quotes).
• Click the button labeled “OK”.
Did the new page display the contents of the two text boxes? How do the two values differ? How does the
script in ProcessPost.asp handle the two inputs differently that accounts for the difference?
If Time Permits
Retrieving Values from Forms
The examples from this exercise used two separate files to enter and display the information from the form.
Create an example that makes use of one form only (the action argument of the <FORM> tag calls itself).
So if the name of the script file is Test.asp, then the form tag will be <FORM ACTION=”TEST.ASP”
METHOD=”POST”>.
Exercise 3
Retrieving values from forms using the Get
Method
In this exercise, you will use the get method to retrieve data from information supplied by a user by way of
a form.
14552.To create a user form:
• Open UsingGet.htm in either Notepad.exe or Visual Interdev. This file is found in the C:\Labs\Labs4
folder.
• Modify the <FORM> tag to match the <FORM> tag listed below:
<FORM method="Get" action="ProcessGet.asp">
• What does the action argument identify?
Can you identify the text boxes and their names?
• Save the changes for this file.
14553.To retrieve user data:
• Create a new text file using either NOTEPAD.EXE or ASP file using Visual Interdev.
• Insert the script listed below into the new text file.
<HTML>
<BODY>
<%
sResponse1=Request.Querystring("text1")
sResponse2=Server.HTMLEncode(Request.QueryString("text2”))
%>
</BODY>
</HTML>
• Save the new file as ProcessGet.asp in the C:\Labs\Lab4 folder.
• Test the application by browsing the following URL in Microsoft Internet Explorer:
HTTP://LocalHost/Labs/Lab4/UsingGet.HTM.
• In both Text1 and Text2 text boxes, type “<B>HELLO</B>” (without the quotes).
• Click the button labeled “OK”.
Did the new page display the contents of the two text boxes? What appears with the URL in the address
bar of Microsoft Internet Explorer?
Exercise 4
Passing information between pages and
users
In this exercise, you will use the Session object and the Application object to pass information to multiple
web pages or between users using the same application.
• Launch NOTEPAD.EXE or Visual Interdev and create a new text file.
• Insert the following script into the new document:
<HTML>
<BODY>
<%
Application("Name")=Request.ServerVariables("REMOTE_ADDR")
Session("Name")=Request.ServerVariables("REMOTE_ADDR")
%>
Page One<BR>
Application=<%=Application("Name")%><BR>
Session=<%=Session("Name")%><BR>
<A HREF="PageTwo.ASP">Go To Next Page</A>
</BODY>
</HTML>
• Create another new text file and insert the following script:
<HTML>
<BODY>
Page Two<BR>
Application=<%=Application("Name")%><BR>
Session=<%=Session("Name")%><BR>
<%Session.Abandon
Response.Write "Session object closed (Session.Abandon)"%>
Session=<%=Session("Name")%><BR>
<A HREF="PageThree.ASP">Go To Next Page</A>
</BODY>
</HTML>
<HTML>
<BODY>
Page Three<BR>
Application=<%=Application("Name")%><BR>
Session=<%=Session("Name")%><BR>
</BODY>
</HTML>
Exercise 5
Storing and retrieving values with cookies
In this exercise, you will use cookies as a semi-permanent storage medium. Cookie values are stored on the
browser using Response.Cookie, and are retrieved using Request.Cookie.
Cookies are often used to store user preferences across sessions or act as shopping carts for web stores.
• Launch NOTEPAD.EXE or Visual Interdev.
• In a new document, insert the following script:
<%'Response.Cookies require buffering
Response.Buffer=True%>
<HTML>
<BODY>
<%
Dim dLastVisited
‘Check if
If dLastVisited=Empty then
Response.Write "Welcome. This is your first visit"
Else
Response.Write "Welcome Back!<BR>"
Response.Write "You last visited on " & dLastVisited
End If
Response.Cookies("LastVisit")=Now()
Response.Cookies("LastVisit").Expires="December 31, 2000"
</BODY>
</HTML>
If Time Permits
Storing and retrieving values with cookies
Visual Interdev contains a sample application that incorporates a shopping application. Use Visual Interdev
to create the sample application project called Dos Perros and examine the shopping application.
Exercise 6
Using the GLOBAL.ASA file
In this exercise, you will create a GLOBAL.ASA file to track web usage.
The GLOBAL.ASA file provides a mechanism to run special procedures when application and sessions
either start or terminate. This provides the ability to run code for each new session on the web server.
This is an instructor led exercise, where the final script is generated by the class as a group.
Exercise 7
Using Transactions
In this exercise, you will add transaction processing to a web page. Transactions are typically used while
manipulating data within databases. If a web page that processes data abnormally ends, the database could
be left in an incomplete state. Transactions provide the mechanism to recover from these incomplete states.
While this example does not demonstrate transactions using databases, the next module covering databases
will provide a lab demonstrating the use of transactions with databases.
Sub OnTransactionCommit()
Response.Write "<BR><B>Transaction committed</B>"
End Sub
%>
Objectives
Recommended Reading
• Windows NT 4.0 Option Pack Documentation.
Lab Setup
This lab assumes you have copied the labs folder as instructed by the instructor and created a virtual
directory called LABS under IIS 4.0.
Exercise 1
Determining browser capabilities
In this exercise, you will use the Browser Capabilities object to determine what features a browser
supports.
• Launch Microsoft Internet Explorer and browse the URL HTTP://LocalHost/Labs/Lab5/Browser.ASP
What technologies are listed? What setting is shown for ActiveXControls?
• Using NOTEPAD.EXE, open the file C:\WINNT\SYSTEM32\INETSRV\BROWSCAP.INI.
• Locate the section labeled [IE 4.0] in the BROWSCAP.INI file. Find the line that reads
ActiveXControls=TRUE
in the [IE 4.0] section and change it to read
ActiveXControls=FALSE
• Save the changes to the file and close Notepad.
• Switch back to Microsoft Internet Explore and refresh the Browser.ASP page.
What setting is displayed for ActiveXControls now?
• Open NOTEPAD.EXE and insert the following script into a new file:
<%Response.Buffer=True%>
<HTML>
<BODY>
<%
Set BRW=CreateObject("MSWC.BrowserType")
If BRW.Tables=True Then
Response.Redirect "WithTables.HTM"
Else
Response.Redirect "WithoutTables.HTM"
End If
%>
</BODY>
</HTML>
• Save the file as C:\Labs\Lab5\Default.ASP.
• Look at the script and try to determine which page will appear if you browse
HTTP://LocalHost/Labs/Lab5/Default.ASP, based on the information you saw in BROWSER.ASP. (Do
not browse the page until you have made a guess.)
• Switch back to Microsoft Internet Explorer and browse HTTP://LocalHost/Labs/Lab5/Default.ASP.
Was the browser redirected to the page you predicted? What change to the BROWSCAP.INI file can you
make to change this behavior?
Exercise 2
Accessing Data using ASP scripts
In this exercise, you will retrieve data from an Access database and display the records from a table within
the database on a web page, using ActiveX Data Objects. Web developers often use ADO to create guest
books, bulletin board systems or even order tracking tools.
To successfully create this web page, you must create a system data source within ODBC manager (you'll
use one already installed by IIS 4.0), instruct ASP to include special constants required for ADO and finally
retrieve the data using a recordset object.
1. To create the system data source:
• From the Start Menu, select Settings and launch Control Panel.
• Double-click on the ODBC icon in Control Panel.
• Switch to the System DSN tab.
• Verify that AdvWorks is listed as a Data Source in the System Data Sources list box.
2. To create the web page:
• Use NOTEPAD.EXE to open the file C:\Labs\Lab5\SIMPLEADO.ASP.
3. To include the special constants required by ADO:
• Type the following line into SIMPLEADO.ASP, immediately below the comment <!-- Place include here
-->.
<!--#include file = "adovbs.inc"-->
4. To create an ADO recordset object and access records from the database:
• Type the following script into SIMPLEADO.ASP immediately below the comment "'Place Code Here"
Dim objRS
Set objRS=Server.Createobject("ADODB.Recordset")
objRS.Open "Select * from Employees","DSN=ADVWorks;"
Do Until objRS.EOF
Response.Write objRS.Fields(1) & " "
Response.Write objRS.Fields("LastName") & "<BR>"
objRS.MoveNext
Loop
objRS.Close
Set objRS=Nothing
• Save the changes to SIMPLEADO.ASP.
• Test SIMPLEADO.ASP by launching HTTP://LocalHost/Labs/SIMPLEADO.ASP in Internet Explorer.
Exercise 3
Adding New Data using ADO
In this exercise, you will create new records from data provided in a form by the user. In this example, you
will continue using the data source AdvWorks and the employees table from that database. To view whether
the code successfully added the new record from the form, this sample will call the ASP page from the
previous example to display all records from the employees table.
1. To setup the form to capture the user's data:
• Using Notepad, open the file CAPUSER.HTM, which is found in the LABS folder.
• Modify the line containing the <FORM> tag as follows:
<FORM Method="Post" Action="ADDUSER.ASP">
• Save the changes to CAPUSER.HTM.
2. To insert a new record:
• Use NOTEPAD.EXE to open the file ADDUSER.ASP, found in the LABS folder.
• In ADDUSER.ASP, immediately following the comment 'ADD SCRIPT HERE', add the script that
follows on the next page.
objConn.Open "DSN=AdvWorks"
objConn.Close
Set objConn=Nothing
Exercise 4
Using Stored Procedures and Parameters
In this exercise, you will access stored procedures on a SQL Server to perform common tasks within the
database.
This exercise is a instructor led assignment which is created together by the class. The finished code can be
viewed in HTTP://LocalHost/Labs/Lab5/StoredProc.ASP.
Exercise 5
Using Transactions with ADO
In this exercise, you will create new records from data provided in a form by the user. In this example, you
will continue using the data source AdvWorks and the employees table from that database. To view whether
the code successfully added the new record from the form, this sample will call the ASP page from the
previous example to display all records from the employees table.
This exercise is a instructor led assignment which is created together by the class. The finished code can be
viewed in HTTP://LocalHost/Labs/Lab5/ADOTransact.ASP.
Exercise 6
Sending Mail using an ASP script
In this exercise, you will create a web page that sends SMTP mail using information provided from a form.
This is a common request of web developers.
1. To capture user information in a form:
• Launch your favorite HTML editor and open EMAILFRM.HTM, found in the C:\Labs\Lab5 folder.
• Locate the <FORM> tag and modify the tag to read as follows.
• <FORM METHOD="Post" ACTION="SENDMAIL.ASP">
• Save the changes to EMAILFRM.HTM
2. To create a mail object
• Using Notepad or your favorite editor, open SENDMAIL.ASP, also found in the C:\Labs\Lab5 folder.
• Add the following VBScript to SENDMAIL.ASP. The VBScript should be placed immediately following
the comment "'ADD MAIL CODE HERE".
Dim objNewMail
Set objNewMail=Server.CreateObject("CDONTS.NewMail")
ObjNewMail.Send sFromName,sToName,sSubject,sMsg
Set objNewMail=Nothing
• Save the changes made to SENDMAIL.ASP
3. To test the application:
• Launch Internet Explorer and browse HTTP://LOCALHOST/LABS/LAB5/EMAILFRM.HTM.
• Fill out the information requested in the form, using valid email names for “From” and “To”.
• Click on the "Send" Button.
If Time Permits
Sending Mail using an ASP script
SENDMAIL.ASP is very simplistic, in that it does not perform any error trapping. Modify
SENDMAIL.ASP to check whether the user has filled in all fields from EMAILFRM.HTM, whether the
NewMail object is created successfully (use IsObject()), and the Send command succeeded (check
ERR.NUMBER). To incorporate error trapping, you will need to use the statement "On Error Resume
Next" at the prior to creating the NewMail object.
The following table lists the version of Microsoft Visual Basic Scripting Edition implemented by host
applications.
VBScript VBScript VBScript
Host
Version 1.0 Version 2.0 Version 3.0
Microsoft Internet Explorer 3.0
t 1.0 Features
Functions
Abs IsEmpty
Asc IsNull
Atn IsNumeric
CBool IsObject
CByte LBound
CCur
CDate
CDbl
Chr
CInt
Cos
CSng
CStr
Date
DateSerial
DateValue
Day
Exp
Fix
Hex
Hour
InputBox
InStr
Int
IsArray
IsDate
Methods
Clear Raise
Objects
Error
Properties
Description Source
Number
Statements
Call Null
Dim On Error
Do...Loop Option Explicit
Empty Randomize
Erase ReDim
Exit Rem
False Select Case
For...Next Set
Function Sub
If...Then...Else True
Nothing While...Wend
Constants
Color Miscellaneous
Comparison MsgBox
Date and Time String
Date Format VarType
File Input/Output
Functions
Array LoadPicture
CreateObject MonthName
DateAdd Replace
DateDiff RGB
DatePart Round
Filter ScriptEngine
FormatCurrency ScriptEngineBuildVersion
FormatDateTime ScriptEngineMajorVersion
FormatNumber ScriptEngineMinorVersion
FormatPercent Split
GetObject StrReverse
InstrRev TypeName
Join WeekdayName
Methods
Add ReadLine
Close Remove
CreateTextFile RemoveAll
Exists Skip
Items SkipLine
Keys Write
OpenTextFile WriteBlankLines
Read WriteLine
ReadAll
Objects
Dictionary TextStream
FileSystemObject
Properties
AtEndOfLine HelpContext
AtEndOfStream HelpFile
Column Item
CompareMode Key
Count Line
Statements
Const Private
For Each...Next Public
Collections
Drives Folders
Files
Constants
DriveType SpecialFolder
File Attribute
Methods
AddFolders
BuildPath
Copy
CopyFile
CopyFolder
CreateFolder
Delete
DeleteFile
DeleteFolder
DriveExists
FileExists
FolderExists
GetAbsolutePathName
GetBaseName
GetDrive
GetDriveName
GetExtensionName
GetFile
GetFileName
GetFolder
GetParentFolderName
GetSpecialFolder
GetTempName
Move
MoveFile
MoveFolder
OpenAsTextStream
Objects
Drive Folder
File
Properties
d Support Training Microsoft ConfidentialOctober 2008
Properties 74
Attributes
AvailableSpace
DateCreated
DateLastAccessed
DateLastModified
Drive
DriveLetter
Drives
DriveType
Files
FileSystem
FreeSpace
IsReady
IsRootFolder
Name
ParentFolder
Path
RootFolder
SerialNumber
ShareName
ShortName
ShortPath
Size
SubFolders
TotalSize
Type
VolumeName
Category Feature/Keyword
Formatting strings FormatCurrency
FormatDateTime
FormatNumber
FormatPercent
MonthName
WeekdayName
Intrinsic constants vbGeneralDate
vbLongDate
vbLongTime
vbShortDate
vbLongDate
vbTristateFalse
vbTristateMixed
vbTristateTrue
vbTristateUseDefault
Objects Dictionary
FileSystemObject
TextStream
Rounding Round
Strings Filter
InstrRev
Join
Replace
Split
StrReverse
Script Engine Identification ScriptEngine
ScriptEngineBuildVersion
ScriptEngineMajorVersion
ScriptEngineMinorVersion