http://msdn.microsoft.com/library/en-us/script56/html/jsFSOTutor.asp
If you want to register a DLL without having a message appear confirming the operation,
use regsvr32 /s mydll.dll. Alternatively, you can use regsvr32 to unregister a component
by using the /u flag (e.g., regsvr32 /u mydll.dll).
Option Explicit
Dim WshObj
' Object for the Run-Method
Set WshObj = Wscript.CreateObject("WScript.Shell")
WshObj.Run "RunDll32.exe Shell32.dll,OpenAs_RunDLL", _
1, true ' launch dialog
' End
Sub WriteFile (strFile, strLine, mode)
Dim oFSO
Dim oFile
Set oFSO =CreateObject("Scripting.FileSystemObject")
'*** Open a file for appending; create a new file if it doesn't exist
Set oFile = oFSO.OpenTextFile(strFile, mode, True)
oFile.WriteLine(strLine)
oFile.Close
Set oFSO = Nothing
Set oFile = Nothing
End Sub
functions thisargs() {
var args = WScript.arguments
for(var i=0;i