Page 1 of 1

CmdLine Begin command with "|" [ Re-request ]

Posted: 2013-12-09, 23:01 UTC
by Balderstrom
Split from other thread

Balderstrom
Posted: Thu Feb 03, 2011
""
MVV wrote:
StatusQuo wrote:[Edit:] Maybe both would be possible, if only upper case internal variables would be expanded.
Or if TC will treat '%%' as just percent sign like in bat-files. :wink:

Code: Select all

cmd /k for %%n in (*.*) do @echo %%n
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).
When the OR symbol "|" is the first character in TC's command prompt it would modify behaviour as MVV suggests, eg:
|cmd /K @ECHO OFF&FOR /F "delims=" %%F IN (%S) DO ECHO %%F
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.
""