JustScriptIt
Technical User
I am trying to split the string:
D:\PROGRA~1\COMMON~1\SYMANT~1\VIRUSD~1\20111208.001
I wrote the following code
But outputs
D:\PROGRA~1\COMMON~1\SYMANT~1\VIRUSD~1\20111208.001
Not
20111208.001
HELP!
D:\PROGRA~1\COMMON~1\SYMANT~1\VIRUSD~1\20111208.001
I wrote the following code
Code:
strKeyPath = "SOFTWARE\Symantec\SharedDefs"
strValueName = "DEFWATCH_10"
oReg.GetStringValue _
HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
strVirus = strValue
'Extract actual virus definition
strArray = Split(strVirus,"\\",-1,1)
strVirus = strArray(6)
wscript.echo strVirus
But outputs
D:\PROGRA~1\COMMON~1\SYMANT~1\VIRUSD~1\20111208.001
Not
20111208.001
HELP!