Run Method (Windows Script Host)

  Runs a program in a new process. Copy object .Run(strCommand, [intWindowStyle], [bWaitOnReturn]) Arguments object WshShell object. strCommand String value indicating the command line you want to run. You must include any parameters you want to pass to the executable file. intWindowStyle Optional. Integer value indicating the appearance of the program’s window. Note that not all programs make use of this information. bWaitOnReturn Optional. Boolean value indicating whether the script should wait for the program to finish executing before continuing to the next statement in your script. If set to true, script execution halts until the program finishes, and Run […]

Read more

Run Console Applications & Batch Files, without any Window, in the background

Many times systems engineers come across the need to suppress the console window of a cmd prompt while setting up various batch and script automations to be run in silent mode. Below is the list of various options available to control the cmd console window and you need to choose the option as per your requirements:  Hidden Start (a complete solution to control console windows and also supports x64bit)  Start (helps control spawned process console)  PowerShell –WindowStyle Hidden  WshShell.Run WindowStyle = 0  Javaw.exe is a console/window less Java.exe that runs Java programs as hidden process   ————————— Hidden Start v3.2  […]

Read more

Repair and Verify System Catalog Database Integrity

Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation.  All rights reserved. C:>net stop cryptsvc The Cryptographic Services service is stopping.. The Cryptographic Services service was stopped successfully. C:>esentutl /p %systemroot%System32catroot2{F750E6C3-38EE-11D1-85E5-00C04FC295EE}catdb Extensible Storage Engine Utilities for Microsoft(R) Windows(R) Version 6.1 Copyright (C) Microsoft Corporation. All Rights Reserved. Initiating REPAIR mode…         Database: C:WindowsSystem32catroot2{F750E6C3-38EE-11D1-85E5-00C04FC2 95EE}catdb   Temp. Database: TEMPREPAIR4932.EDB Checking database integrity.                      Scanning Status (% complete)           0    10   20   30   40   50   60   70   80   90  100           |—-|—-|—-|—-|—-|—-|—-|—-|—-|—-|           …………………………………………… Integrity check successful. Note:   It is recommended that you immediately perform a full backup   of this […]

Read more