Article View: comp.os.ms-windows.programmer.tools
Article #552RE : Help VB talking 2 DOS
From: f_tawb
Date: Fri, 09 Oct 1992 15:24
Date: Fri, 09 Oct 1992 15:24
22 lines
1148 bytes
1148 bytes
You're on the right track here. If your comms software accepts command line parameters, just build a string with the program name and desired parameters e.g. for MS-KERMIT : ShellCommand$="C:\KERMIT\KERMIT.EXE TAKE LOGON.TAK" this would launch kermit, and execute a command file called LOGON.TAK which the VB prog could create just prior. Ideally, the script would have the EXIT (or equivalent) command as the last one. If you want more control over the session, look up the WinExec API function (see CICA's VB directory for the win31api.zip file). If the software doesn't have command lines, it's API time again, this time I'd suggest looking at how to 'paste' stuff to the DOS session (messy, but it might work). Alternatively, use the * Famous Index Nudging Going Easily, Right * method! Tam.
Technical Details
Message-ID:
<1992Oct9.152437.98@va.nkw.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!edcastle!nkw-c1!nkw-va!f_tawbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!edcastle!nkw-c1!nkw-va!f_tawb From: f_tawb@va.nkw.ac.uk Newsgroups: comp.os.ms-windows.programmer.tools Subject: RE : Help VB talking 2 DOS Message-ID: <1992Oct9.152437.98@va.nkw.ac.uk> Date: 9 Oct 92 15:24:36 GMT Organization: Natural Environment Research Council Lines: 22