Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Determine the Default Script Host on a Computer Before I Run a ScriptContent of Determine the Default Script Host on a Computer Before I Run a Script.vbsMD5 Hash: BE082B3C1446A69F0E5B58F76F20DF83 |
||
Const HKEY_CLASSES_ROOT = &H80000000
strComputer = "." Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv") strKeyPath = "VBSFile\Shell\Open\Command" objRegistry.GetExpandedStringValue HKEY_CLASSES_ROOT,strKeyPath,vbNullString,strValue strValue = LCase(strValue) If InStr(strValue, "wscript.exe") then Wscript.Echo "WScript" Else Wscript.Echo "CScript" End If | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |