Custom Search

Run Registry File Silently!

This is important often to execute a registry file silently. Specially in batch file or scripting when it might required to run or execute a set-of-process/a-single-process automatically. Please find the VBS code stated as below to run a registry file silently.   

Silent execution of a registry file


'--------------------------Script Start---------------------------------

Set oShell = CreateObject("Wscript.Shell")

'Your .Reg file and path goes here as in the example below
sRegFile = "File Path\*.reg"

'This line runs Regedit in silent mode
oShell.Run "regedit.exe /s " & Chr(34) & sRegFile & Chr(34), 0, True

'-------------------------Script End -----------------------------------

Please download the script RunRegSilent.vbs.

No comments:

Post a Comment