Search found 7 matches

by dosbatch
05 Dec 2016 18:48
Forum: DOS Batch Forum
Topic: In batch script, output command in txt file
Replies: 12
Views: 6920

Re: In batch script, output command in txt file

Tnk you so much!! It works fine!
by dosbatch
05 Dec 2016 15:54
Forum: DOS Batch Forum
Topic: In batch script, output command in txt file
Replies: 12
Views: 6920

Re: In batch script, output command in txt file

"nvram commit" produces exact one output line, which starts with a percentage character ('%'). Exactly!

But your script don't work. I don't understand...
by dosbatch
05 Dec 2016 09:14
Forum: DOS Batch Forum
Topic: In batch script, output command in txt file
Replies: 12
Views: 6920

Re: In batch script, output command in txt file

With this .bat

Code: Select all

(for /F "tokens=*" %%A in (router.txt) do (
start telnet.exe -f log.txt %%A
cscript command.vbs
))
by dosbatch
05 Dec 2016 03:50
Forum: DOS Batch Forum
Topic: In batch script, output command in txt file
Replies: 12
Views: 6920

Re: In batch script, output command in txt file

This works fine: (for /F "tokens=*" %%A in (router.txt) do ( start telnet.exe -f log.txt %%A cscript comandi.vbs )) But I would be a list of output telnet command in one file. With this code I have only one output telnet command in log.txt In the same log.txt I want this structure: %%A out...
by dosbatch
04 Dec 2016 12:17
Forum: DOS Batch Forum
Topic: In batch script, output command in txt file
Replies: 12
Views: 6920

Re: In batch script, output command in txt file

(for /F "tokens=*" %%A in (router.txt) do (
start telnet.exe %%A
script command.vbs
telnet -f logfile.txt %%A
))

In this case I have all output of telnet command

Tnk
by dosbatch
04 Dec 2016 09:23
Forum: DOS Batch Forum
Topic: In batch script, output command in txt file
Replies: 12
Views: 6920

Re: In batch script, output command in txt file

Thank you for the answer. Because I think this is the simple way. Can you explain how I modify the code for resolve my issue? This script run ok but i need to receive output for one command. If you think that scriptable telnet client is the best solution, can you explain how do you procede? Sorry fo...
by dosbatch
04 Dec 2016 05:45
Forum: DOS Batch Forum
Topic: In batch script, output command in txt file
Replies: 12
Views: 6920

In batch script, output command in txt file

Hi everyone!

I have .bat file

and file .vbs

How can I save the output of commands?

Thank you so much! Bye