Sorry, the code provided won't run on it's own, it's a suggested modification to the gk.vbs script that contains the InputLine function. Does the gk.vbs sample included in the ZIP file run?
Stein
If you still need to enter a masked password, download and register the free SCBLIB COM component from www.enterprisewsh.com.
This provides console, keyboard and mouse support.
There is a sample script in the SCBLIB.ZIP, gk.vbs, that provides the ability to enter masked password text.
The...
This value is of REG_MULTI_SZ type(use REGEDIT to identify this).
Reading this registry type returns an array of strings. To read each item enumerate the array:
Dim strInstalled, WshShell, strPage
Set WshShell = CreateObject("Wscript.Shell")
strInstalled =...
Use the WScript.Shell object to get the special folder and the File Scripting Object to enumerate the files:
'enumerate Desktop
Set objShell = WScript.CreateObject("WScript.Shell")
'change Desktop to AllUsersDesktop to get Users desktop
strDesktop =...
You count the instances of Cscript or Wscript processes running and exit script if more than one. The following script uses WMI to determine if more than one instance of Cscript process is running and terminates the script if so:
Set objServices = _...
Try adding %Comspec% /c to the run method before the command you are trying to execute:
WshShell.Run("%Comspec% /c format e: /FS:NTFS /Q /V: <c:\entcss_disk_part\ans.txt"),7, true
Regards,
Stein Borge
Author of: Managing Enterprise Systems with the Windows Script Host
Over 800...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.