1.

Solve : Batch file to run cmd commands??

Answer»

i WANT to be able to click on my .bat file and have it run a series of commands in cmd.exe
i start with
c:\windows\system32\cmd.exe
but how do i make it carry on from there?
for EXAMPLE make it type ipconfig in there for me?
probs easy qeustion but i dont know :SYour batch doesn't have to start with cmd.

If you want it to do IPCONFIG just type ipconfig on one line in your batch file. cool. i see.
so how would i get it to open telnet and then type various commands in there for me?it could be:

CODE: [Select]telnet <code.txt where code.txt is a text file containing the input you want.

what exactly is it you want to do in telnet?

FBi have the .bat file on my desktop so would i keep the .txt file there too?
i just tried what u said and the cmd.exe opens and keeps trying "telnet 0
i want it to open telnet for me then, go through the PROCESS of sending an email

by the commands:

open smtp.myisp.com 25

mail from:<[emailprotected]>

rcpt to:<[emailprotected]>

data

and so on....

thanks



Discussion

No Comment Found