cannot use echo. with set/p and |
Posted: 21 Feb 2014 10:15
This works as expected
But I don't want to have to hit ENTER.
But if I do this, it doesn't work as expected.. I want it to do like the above but hitting ENTER
ultimately I want to do
But without the CRLF at the end. So i'm using the echo.|set /p=_____ technique. But it's not working when the thing after the = contains a |
Code: Select all
C:\>set/p=AAAAAAAA^|BBBBBBB
AAAAAAAA|BBBBBBB
C:\>
But I don't want to have to hit ENTER.
But if I do this, it doesn't work as expected.. I want it to do like the above but hitting ENTER
Code: Select all
C:\>echo.|set/p=AAAAAAAA^|BBBBBBB
'BBBBBBB' is not recognized as an internal or external command,
operable program or batch file.
C:\>
ultimately I want to do
Code: Select all
C:\>echo AAAAAA^|BBBBB>c:\crp\f.fff
C:\>
But without the CRLF at the end. So i'm using the echo.|set /p=_____ technique. But it's not working when the thing after the = contains a |