%vData% equals the HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path variable which includes ;%main%\Programs\Go\Bin.
%main% is a variable in the same Environment which holds the value C:\Main.
I want to check if this value exists before adding, so I have the code:
echo %vData% | FindStr /L /I /C:"%%main%%\\Programs\\Go\\Bin"
I have tried %%main%% and %main% and %^main% and %^^main% but it consistently tells me the string does not exist.
How do I get it to show me it does exist?