Kenny,

Did you know that BLAT is also available as BLAT.DLL. see:
http://sourceforge.net/projects/blat/files/
and download blat262.full.zip

With the DLCALL function added to recent versions you should be able to issue a 
direct call to the function. 

Blat DLL
blat.dll has one function, Send which takes a null terminated string
which is the blat command line. The return is the value of the Return
Code returned by Blat. See Blat Error Return Codes 
DocumentationBlat Error Return Codes 
Known Issues / Things to be aware of:
Blat.dll works exactly like blat.exe. One difference is that when using
blat.exe, the command interpreter (DOS box) removes extra spaces from
the command line. When constructing the command line string to pass to
the Blat.dll's Send function, be careful to construct the command line
without any extra spaces. 
Do not include a trailing space in the Subject: -s "this is a bad thing to do "
This will cause the send to fail. 


I haven't tried to do this direct connection yet. Currently I use RBase to 
create a BAT file with the complete 

command lines and then call the bat file for execution. My application calls 
for issuing email to a number of members.

You also might want to access the documentation as when you have common or 
standard option you can write them to a file and refer to the file on the 
command line  thus decreasing the size of you command line option.

If you do decide to go the DLL route I would appreciate seeing your code to set 
up the DLCALL statements.

 Jim Bentley
American Celiac Society
[email protected]
tel: 1-504-737-3293




________________________________
From: Dan Goldberg <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Friday, August 14, 2009 12:22:03 PM
Subject: [RBASE-L] - RE: 7.6 compiler - Is zip supported?

  
have you tried these:
 
LAUNCH runh|.vcmd|W
 
or
 
LAUNCH runh|&vcmd|W
 
or
 
set var vcommand text = ('LAUNCH runh|' + .vcmd + '|W')  --puts the command 
into a 
variable
&vcommand  --runs the 
command
 
Dan 
Goldberg
 
PS is that Runh program available?? 
It would  like it if is.
 
 


________________________________
 From: [email protected] 
[mailto:[email protected]] On Behalf Of Kenny Camp
Sent: Friday, August 14, 2009 10:00 AM
To: RBASE-L Mailing 
List
Subject: [RBASE-L] - 7.6 compiler - Is zip 
supported?


In 
the full version of R:Base 7.6 for Windows “ZIP runh  .vcmd “ works exactly 
like I want, but not in my compiled version.  Is ZIP supported in the 
compiler?  I haven’t been able to get launch to work correctly for this 
yet.
 
Runh.exe 
runs a file in the background (Thanks John)
 
I’m 
trying to use  BLAT.exe and it’s parameters in a variable to send email 
from my Citrix server directly using SMTP instead of setting up 50 email 
clients 
on the Citrix server (one for each user now and add one for each in the 
future)
 
Example 
of vcmd
 
blat.exe 
-f [email protected] -to [email protected] -subject "CRM Communication METRO 
AVIATION, INC. 48025 Record# 192 AT8 Tami / Greg " -server smtpout.xxxxx.net 
-bodyf \elec\crm_email\6.txt -u [email protected] -pw xxxxx -log 
\elec\crm_email\CRM_Log.txt
 
Kenny 
Camp


      

Reply via email to