- Aug
- 2,015
- 81
The help says that DO varname IN only works with @CLIP:, not @TMP:
Please allow @TMP: to be used with DO varname IN
Joe
DO command - Create loops in Windows batch files
DO varname IN @file executes the commands between DO and ENDDO once for every line in file, setting varname to the content of each one in turn. Beware of characters with special meaning to TCC, such as redirection and piping symbols, within the file (use SETDOS /X as needed).
To execute the loop once for each line of text in the clipboard, use CLIP: (or CLIP0: - CLIP9:) as the file name (e.g. DO X IN @CLIP:). CLIP: will not return any data unless the clipboard contains text. See Redirection for more information on CLIP:.
Please allow @TMP: to be used with DO varname IN
Joe