0
I'd be really grateful for some assistance with this, as it's blowing my mind.
All I want to do is pull the Version Number of Symantec, using the below code, which works in part, all except the gathering of the last part of the string, which I know is correct as I have something similar working in other batch files.
Can anyone see where I have gone wrong?
--
@echo off
@setlocal enabledelayedexpansion
set VersionReg = (
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\Symantec Endpoint Protection\currentversion\public-opstate" /v "DeployRunningVersion"
)
echo %VersionReg%
SET Version=%VersionReg:~134,14%
echo %version%
--
Many thanks in advance...
1Is your version string really more than 134 characters long? – DavidPostill – 2016-11-03T17:01:45.257
1Run your batch file without the @echo off and [edit] to include the output ... – DavidPostill – 2016-11-03T17:02:44.470