Category Archives: Batch Files

Accessing/Manipuate Remote Registry

During Automation, we normally encounter some scenarios writing vbscripts using which we try to update the registry values.Below is the snippet provided just to give the foot step to proceed further activities. ‘PolicyEdit.vbs‘Version: 2.0 Set objFSO = CreateObject(“Scripting.FileSystemObject”) ‘ CONSTANTS‘REGISTRYconst HKEY_CURRENT_USER = &H80000001const HKEY_LOCAL_MACHINE = &H80000002 ‘FILESYSTEMConst ForAppending = 8Const… Read more »

Batch file Macro getting the Current File and Path of Batch file

Batch file Macro getting the Current File and Path of Batch file. Batch File Macro for pulling out the complete Path of the directory of the batch file, its path, File NameThis better can be very much felt while writing the postbuild scripts @echo offSET MyPath=%~dp0ECHO Path of the File:… Read more »