This seems to be totally what i'm looking for but i am not able to make it work. I use this simple command: type allo.txt|find "1.10" /c|set2var cnt it work and echo @set cnt=2 but im in the same problem as before, i still can't use the value of cnt in a command. I need to write: Type cnt ...
Hi, Is it possible to use the output that is echoed by a command in DOS 7.1?. The for /f does not exist in 7.1. I use the find command: type file.txt|find "string" /c It returns me a number. I can send the result to another file like this find "string" < inputfile > outpufile But...