Thank you!
Well explained. I also found out from your example that there is a difference when using ` vs. ', this I was never aware of, I have been using (and getting away with!) ' for years.
I am reading up on Set local and delayed expansion so I can get an understanding.
Much appreciated!
R
Search found 2 matches
- 02 May 2020 20:28
- Forum: DOS Batch Forum
- Topic: Reg Query For Loop and Reg Add failure
- Replies: 2
- Views: 3783
- 02 May 2020 08:04
- Forum: DOS Batch Forum
- Topic: Reg Query For Loop and Reg Add failure
- Replies: 2
- Views: 3783
Reg Query For Loop and Reg Add failure
I'm trying retrieve the path of a variable registry key location using "S/N:" and use it in a REG ADD routine. The issue is that it is returning the same result 3 times over for each key with "S/N:" and this does not change any of the target data values. c:\>SET TARGETPATH=VID_05E0&PID_0820\S/N:7014...