@Word from Lines with Pipes

| One way is to use SETDOS /X to disable special handling of some characters. SETDOS /X-6 will disable redirection.

I tried this and it looks likes it is working great. Thanks for the solution. This problem confounded me for ages. Hence the batch file should look like that:

copy http://jpsoft.com/forums/ test.txt
Echo %@Word[0,%@Line[Test.txt,0]]

| Here's another possible approach:

Thanks also for this great tip.

Tony Tschanz

Similar threads