1. RE: Blat wrapper question
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> May 12, 2005
- 458 views
- Last edited May 13, 2005
>From: George Walters <guest at RapidEuphoria.com> >Reply-To: EUforum at topica.com >To: EUforum at topica.com >Subject: Blat wrapper question >Date: Thu, 12 May 2005 13:37:18 -0700 > >posted by: George Walters <gwalters at sc.rr.com> > >When I type this command directly from a command prompt in XP the email >gets sent correctly. But from a system_exec I get a return code of 1 which >the documentatin says a bad command string or non existent file. Does >anyone know why? I see nothing wrong when the puts displays the cmdString. > >}}} <eucode> > cmdString = "blat.exe " & rptFile & " -to gwalters at sc.rr.com -subject >\"archived invoice\"" > Perhaps some quotes around rptFile will do it? cmdString = "blat.exe \"" & rptFile & "\" -to gwalters at sc.rr.com -subject \"archived invoice\"" > puts(1, cmdString & "\n") > tmp = gets(0) > rc = system_exec(cmdString,0) > trace(1) ></eucode > >the var rptFile does exist. rc has a value of 1. > ~[ WingZone ]~ http://wingzone.tripod.com/