|
Answer» Hi
I'm not sure if this is possible, but I need a way to execute a command, and then execute ONE of it's 'subcommands' from a batch file.
More specifically, TELNET. Being ABLE to open the connection, then proceed through with the HELO, MAIL FROM, RCPT TO, DATA, and QUIT. I've yet to figure this out though
I believe I've seen an example of the FIND being used with a pipe line and the DIR command. Something like...
FIND "Test" | DIR C:\
I'm not sure if that was it, but I know I saw the pipe line. I did a search for it on Google, but all I didn't really find MUCH on the subject. Could one of you help?
Thanks for your time. Seeyah try a terminal emulator with macros like zoc http://www.emtec.com/download.html#zocfiles works good for moo alsoNot everyone is going to have that installed, though. I'm writing a plugin for something, and it needs to be able to execute the Telnet command. I tried to spawn a hidden MS-DOS window, and then send window messages to it, but either Delphi or Windows doesn't like periods and hyphens (as well as other characters...). It rips em out. (So I can't put in the IP or things like gmail-smtp-in.l.google.com.)
Right now I'm trying to either write a temporary batch file to do it, then delete that when I'm done, or just ShellExecute the Telnet command and have all the 'subcommands' in the execution code. And could someone tell me what the correct name for those are? I'm pretty sure it's not 'subcommand' O.o
Before someone tells me to just set up my own client in Delphi and send it from that, I've tried, and Delphi (or at least the component I'm using) doesn't like TSL, which is what Gmail uses.
|