Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting with Procomm version 4.7 1

Status
Not open for further replies.

obliviux

Programmer
Jun 2, 2000
38
US
I have a Foxpro program that used Procomm version 2 for dos.<br>It calls the Trans Union Credit Bureau to do credit checks.<br>Foxpro generates the script file with the necessary infomation and then executes it. <br><br>Now I need to do this with the new version of procomm and can't get the script to run.&nbsp;&nbsp;I have successfully modified foxpro to generate the script file for the new version.<br>The program hangs when it should dial the number.<br><br>Please help<br><br>Jeremy
 
I need to automate the manual process of loggin in using Procomm and transmitting files via dial-up.

 
I have a visual basic program that writes a script and calls procomm plus 4.8. This works fine with ME and 98SR2. We have installed the VB App on 2000 and now the script is generated and procomm is opened, but it will not dial. I can't tell where procomm is hanging up but I know it reads the first line of the script (a line that creates a temporary CAP file). Any suggestions about what could be causing procomm to hang?

Thanks
Lisa
 
Are you able to dial from Procomm without using your script (by either manually dialing or using the Connection Directory entry that your script uses). What is the exact command that the script is hanging on?
 
Does anyone know how to run 'Procomm Application'
from VB?

Thanks
 
I'm not a VB user, but are you asking how to launch Procomm from a VB application, or how to control a Procomm session? The only way for an external application to control Procomm is via DDE, which I imagine VB supports. If you are just looking to have your app launch Procomm, you just need to have VB execute (however VB does that) the file pw4.exe or pw5.exe (depending on which version of Procomm you have) from the Programs directory under your Procomm install.
 
I may be wrong because VB may be different from VBA, but I think you use the shell command. VBA will return a double that represents Procomm's task ID.

Dim PWTASKS

PWTASKS = Shell(&quot;C:\Program Files\Procomm Plus\programs\PW5.EXE&quot;, 1)

You can probably include other arguments as you would from the command line.

Robert Harris
Communications Advantage
 
vovan
Robert is correct. The shell command is used in VB to launch an executable file. But if you need your VB app to wait on the shelled app to finish executing...well that's a whole other ballgame.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top