Good. You are awesome so fast answer and you solved my problem.
Thanks a lot.
Search found 3 matches
- 04 Aug 2011 11:55
- Forum: DOS Batch Forum
- Topic: DOS 7.1 Use command output in variable
- Replies: 4
- Views: 4258
- 04 Aug 2011 07:51
- Forum: DOS Batch Forum
- Topic: DOS 7.1 Use command output in variable
- Replies: 4
- Views: 4258
Re: DOS 7.1 Use command output in variable
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 ...
- 03 Aug 2011 08:25
- Forum: DOS Batch Forum
- Topic: DOS 7.1 Use command output in variable
- Replies: 4
- Views: 4258
DOS 7.1 Use command output in variable
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...