2 ExecuteGlobal
CreateObject("Scripting.FileSystemObject").OpenTextFile( left( WScript
.ScriptFullName
, len (WScript
.ScriptFullName
) -len( WScript
.ScriptName
) ) & "\vb-script-library.vbs",1).ReadAll()
3 InitScript("Website Installation")
7 GetWebPath
= fso
.GetFolder(GetScriptPath
).ParentFolder
& "\website"
10 '---------------------------------------------------------------------------------
11 REM SCRIPT STARTS HERE :D
17 Set subfolders
= fso
.GetFolder(GetWebPath
).SubFolders
18 For Each folder
in subfolders
19 DeleteVirtualWebDir folder
.name
20 CreateVirtualWebDir folder
.name
,GetWebPath
& "\"&folder
.name
23 SetSSLSite
"www.fabrikam.com"
26 Set Link
= wso
.CreateShortcut( wso
.SpecialFolders("Desktop") & "\" & fso
.GetFolder(GetScriptPath
).ParentFolder
.Name
& " Sample Website.lnk")
27 Link
.TargetPath
= "c:\Program Files\Internet Explorer\iexplore.exe"
28 Link
.Arguments
= "https://www.fabrikam.com/CardSpace/"
29 Link
.Description
= fso
.GetFolder(GetScriptPath
).ParentFolder
.Name
& " Start Page"
32 Set Link
= wso
.CreateShortcut(wso
.SpecialFolders("Desktop") & "\" & fso
.GetFolder(GetScriptPath
).ParentFolder
.Name
& " Sample Files.lnk")
33 Link
.TargetPath
= fso
.GetFolder(GetScriptPath
).ParentFolder
34 Link
.Description
= fso
.GetFolder(GetScriptPath
).ParentFolder
.Name
& " Sample Files"
37 wso
.run("https://www.fabrikam.com/CardSpace/")