Search found 5 matches

by tx_tso
07 Sep 2010 15:42
Forum: DOS Batch Forum
Topic: Simple .bat to loop?
Replies: 7
Views: 8154

Re: Simple .bat to loop?

ok, i figured out the first part with the 3 parameters...figured it was probably pretty simple for /f "usebackq tokens=1,2, 3 " %%x in ("Stores.txt") do if "%~1"=="%%~x" telnet %%y %%z (pushes button) "That was easy" now that just leaves me my send-k...
by tx_tso
07 Sep 2010 14:48
Forum: DOS Batch Forum
Topic: Simple .bat to loop?
Replies: 7
Views: 8154

Re: Simple .bat to loop?

you know, that acutally solves one other problem i have! i have some 500+ modems i have connect to and 1/2 of them are on one port, the other half on another port! if i wanted to add the port as the 3rd field in the data row, how would i need to adjust my parameters exactly? EDIT ok, while i am aski...
by tx_tso
07 Sep 2010 14:23
Forum: DOS Batch Forum
Topic: Simple .bat to loop?
Replies: 7
Views: 8154

Re: Simple .bat to loop?

duh, :roll: never mind. i answered my own question

thanks again for your help!
by tx_tso
07 Sep 2010 14:21
Forum: DOS Batch Forum
Topic: Simple .bat to loop?
Replies: 7
Views: 8154

Re: Simple .bat to loop?

thanks for your help! one more thingy. if i wanted to include the port in the telnet statement "telnet 10000" for example, where do i include that parameter at?
by tx_tso
07 Sep 2010 13:34
Forum: DOS Batch Forum
Topic: Simple .bat to loop?
Replies: 7
Views: 8154

Simple .bat to loop?

Hi all and greetings. i must admit that i have not writting dos script in many many years. that said, i am trying to write something that will kinda do the following. i have a list of some 500+ ip address that i have saved as a .txt file. each line would look similar to 123456 84.86.160.95 or someth...