home *** CD-ROM | disk | FTP | other *** search
- ' Windows Script Host Sample Script
- '
- ' ------------------------------------------------------------------------
- ' Copyright (C) 1996 Microsoft Corporation
- '
- ' You have a royalty-free right to use, modify, reproduce and distribute
- ' the Sample Application Files (and/or any modified version) in any way
- ' you find useful, provided that you agree that Microsoft has no warranty,
- ' obligations or liability for any Sample Application Files.
- ' ------------------------------------------------------------------------
-
- Sub Show(pszText)
- WScript.Echo pszText
- End Sub
-
-
- ' Get application object.
- Set oWScript = WScript.Application
-
- '
- ' Show standard properties
- '
- Show "Application Friendly Name = '" & oWScript.Name & "'"
- Show "Application Version = '" & oWScript.Version & "'"
- Show "Application Context: Fully Qualified Name = '" & oWScript.FullName & "'"
- Show "Application Context: Path Only = '" & oWScript.Path & "'"
- Show "State of Interactive Mode= '" & oWScript.Interactive & "'"
-
- '
- ' Show command line arguments
- '
- Set oArgs = oWScript.Arguments
- For i = 0 to oArgs.Count - 1
- Show "Argument #"& i &" = " & oArgs(i) & " "
- Next
-
-