Right so here is my question. How do I make one Command prompt enter code into a different command prompt window. Preferably via batch file. and for explanation sake we will call them
1.bat and 2.bat
[phase1] 1.bat opens 2.bat
[phase2] 2.bat enters code into 1.bat
I got phase 1 complete. but phase 2.....
How is this done?
0
Command Prompt
Started By Numbers, Jan 29 2009 05:42
6 replies to this topic
#1
Posted 29 January 2009 - 05:42
EXTREME Tree is to EXTREME for you.
#2
Posted 29 January 2009 - 07:40
http://www.tldp.org/...edirection.html
Best i could suggest is to output the value to a text file and then make the second batch read the text file.
Best i could suggest is to output the value to a text file and then make the second batch read the text file.
#3
Posted 29 January 2009 - 09:19
Hum can that be done? I'm sorry I should be more clear.
@echo off
start 2.bat
telnet randomaddress
Problem is after telnet runs bat no longer works. Which I was hoping 2.bat can come in. To fill in information that is required. Via type it for me. Make it fast you know?
@echo off
start 2.bat
telnet randomaddress
Problem is after telnet runs bat no longer works. Which I was hoping 2.bat can come in. To fill in information that is required. Via type it for me. Make it fast you know?
EXTREME Tree is to EXTREME for you.
#4
Posted 29 January 2009 - 09:48
Iirc on vista, telnet needed to be installed separately.
Awesome radio
Quote
19:44 - Chyros: I'm very harmless
#5
Posted 29 January 2009 - 13:42
Prophet of the Pimps, on 29 Jan 2009, 8:40, said:
http://www.tldp.org/...edirection.html
Best i could suggest is to output the value to a text file and then make the second batch read the text file.
Best i could suggest is to output the value to a text file and then make the second batch read the text file.
Using a pipe takes out the middle man.
program1 | program2
This uses the output from program1 as input for program2.
CodeCat
Go dtiomsaítear do chód gan earráidí, is go gcríochnaítear do chláir go réidh. -Old Irish proverb
Go dtiomsaítear do chód gan earráidí, is go gcríochnaítear do chláir go réidh. -Old Irish proverb
#6
Posted 30 January 2009 - 22:53
Hey Sweet the code works but It's not working like I need it to. Now I'm getting a different problem. It's looping
EXTREME Tree is to EXTREME for you.
#7
Posted 30 January 2009 - 23:08
Hmm, can you post your code (or at least the endmost part of both)?
5 user(s) are reading this topic
0 members, 5 guests, 0 anonymous users