









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
E-Commerce is taking over the traditional commerce practices. It is of special concern for the IT students. Following are the key points of these Lecture Slides : Webbed Structure, Web Site Organization, Content Fits, Hierarchical Structure, Business Organizational, Additional Details, Combines Structured, Crosslinked, Pages, Enable Visitors
Typology: Slides
1 / 15
This page cannot be seen from the preview
Don't miss anything!










On a Windows computer with Windows Script,
create a file in Notepad called “Hello.vbs” withthe following contents, then double-click it to runthe script. Set fs =
CreateObject("
Scripting.FileSystemObject
")
Set a = fs.CreateTextFile("c:\test.txt", True)a.WriteLine(”Hello World.")a.Closeset fs=nothing
ASP uses native objects (Response), installablecomponents (Browser Capabilities), & WSHobjects (e.g., FileSystemObject)
-^
The FileSystemObject (FSO) is the “window” toserver’s file system. Allows querying andmanipulation of:^ – text files– folders– drives
-^
FSO often offers many ways to do the same thing
Set fso =
Server.CreateObject("Scripting.FileSystemObject") Set dc =
fso.Drives
For Each d in dc
Response.Write d & “
” Next
-^
BuildPath
-^
CopyFile
-^
CopyFolder
-^
CreateFolder
-^
CreateTextFile
-^
DeleteFile
-^
DeleteFolder
-^
DriveExists
-^
FileExists
-^
FolderExists
-^
GetAbsolutePathName
-^
GetBaseName
-^
GetDrive
-^
GetDriveName
-^
GetExtensionName
-^
GetFile
-^
GetFileName
-^
GetFolder
-^
GetParentFolderName
-^
GetSpecialFolder
-^
GetTempName
-^
MoveFile
-^
MoveFolder
-^
OpenTextFile
sDir = Server.MapPath(".")Set fso =
Server.CreateObject("Scripting.FileSystemObject") Set objFldr = fso.GetFolder(sDir)Set objFileColl = objFldr.FilesFor Each file in objFileColl
response.write file.Name & "
" Next
Set fs =
CreateObject("Scripting.FileSystemObject") Set objFile = fs.GetFile("c:\test\test.txt")Response.Write " Name:" & objFile.NameResponse.write " Size:" & objfile.Size & "
"
Const ForAppending = 8sDir = Server.MapPath(".") & "\testfile.txt"Set fs =
Server.CreateObject("Scripting.FileSystemObject") Set objFile = fs.OpenTextFile(sDir, ForAppending)objFile.WriteLine(WeekdayName(WeekDay(date())))objFile.Close