When I try to read 3rd token from output of find control i only get echo %%A
Here is what I have
FOR /F "token=3* delims= " %%A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" ^| find "productname"') do echo %%A
Output of the reg query command similar to ProductName REG_SZ Windows XP I am attempt to find out 1st 2 token so that I can use them as variable.



Reply With Quote
Copyright Techfuels
Bookmarks