Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. steinb

    Username and Password

    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
  2. steinb

    Username and Password

    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...
  3. steinb

    RegRead issue

    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 =...
  4. steinb

    DeskTop folder, All Users

    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 =...
  5. steinb

    getting script's process id

    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 = _...
  6. steinb

    STDIN

    Try adding %Comspec% /c to the run method before the command you are trying to execute: WshShell.Run(&quot;%Comspec% /c format e: /FS:NTFS /Q /V: <c:\entcss_disk_part\ans.txt&quot;),7, true Regards, Stein Borge Author of: Managing Enterprise Systems with the Windows Script Host Over 800...

Part and Inventory Search

Back
Top