Balderstrom
Posted: Thu Feb 03, 2011
""
This would be fairly easy to implement, and it could be made available to any program, not just cmd.exe (other scripting programs, editors, etc).MVV wrote:Or if TC will treat '%%' as just percent sign like in bat-files.StatusQuo wrote:[Edit:] Maybe both would be possible, if only upper case internal variables would be expanded.![]()
Code: Select all
cmd /k for %%n in (*.*) do @echo %%n
When the OR symbol "|" is the first character in TC's command prompt it would modify behaviour as MVV suggests, eg:
Prior to sending the string off to the cmd.exe interpreter for parsing, TC changes all "%%" to % and expands its own internal single letter %vars.|cmd /K @ECHO OFF&FOR /F "delims=" %%F IN (%S) DO ECHO %%F
""