Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12565 > unrolled thread
| Started by | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| First post | 2019-07-22 16:57 +0200 |
| Last post | 2019-08-03 16:43 +0200 |
| Articles | 6 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
RunPiped Franz Rachbauer <office@rachbauer.org> - 2019-07-22 16:57 +0200
Re: RunPiped "Jamal" <noooospam@example.com> - 2019-07-22 21:32 -0400
Re: RunPiped Franz Rachbauer <office@rachbauer.org> - 2019-07-23 16:34 +0200
Re: RunPiped "Jamal" <noooospam@example.com> - 2019-07-23 13:14 -0400
Re: RunPiped Franz Rachbauer <office@rachbauer.org> - 2019-07-24 09:51 +0200
Re: RunPiped Franz Rachbauer <office@rachbauer.org> - 2019-08-03 16:43 +0200
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2019-07-22 16:57 +0200 |
| Subject | RunPiped |
| Message-ID | <qh4isf$1jm3$1@gioia.aioe.org> |
Hi there, I'm using a function "RunPiped" to synchron start blat.exe to send an email. I found this function somewhere in the net or in the vo usergroup (maybe Karl-Heinz?) At my pc it does well, but at the customer pcs it returns false (returncode 5). All pcs with W7 32bit 4GB. The command line is blat.exe C:\TMP\BLAT.HTM -server alfa3085.alfahosting-server.de -port 25 -u web128p7 -pw xxxx -subject "Link Cuttings" -to office@visagemodels.at -f office@visagemodels.at -log C:\TMP\BLAT.LOG -html -alttextf C:\TMP\BLAT.TXT -embed C:\TMP\~PM00001.JPG,h:\cuttings\VISAGE.JPG Does anyone have an idea what the problem could be? Regards, Franz
[toc] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2019-07-22 21:32 -0400 |
| Message-ID | <qh5o3q$tmq$1@news.albasani.net> |
| In reply to | #12565 |
See: http://www.blat.net/examples/blat_return_codes.htm 5 - Error Reading File (message text) Jamal "Franz Rachbauer" wrote in message news:qh4isf$1jm3$1@gioia.aioe.org... Hi there, I'm using a function "RunPiped" to synchron start blat.exe to send an email. I found this function somewhere in the net or in the vo usergroup (maybe Karl-Heinz?) At my pc it does well, but at the customer pcs it returns false (returncode 5). All pcs with W7 32bit 4GB. The command line is blat.exe C:\TMP\BLAT.HTM -server alfa3085.alfahosting-server.de -port 25 -u web128p7 -pw xxxx -subject "Link Cuttings" -to office@visagemodels.at -f office@visagemodels.at -log C:\TMP\BLAT.LOG -html -alttextf C:\TMP\BLAT.TXT -embed C:\TMP\~PM00001.JPG,h:\cuttings\VISAGE.JPG Does anyone have an idea what the problem could be? Regards, Franz
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2019-07-23 16:34 +0200 |
| Message-ID | <qh75u9$1cnn$1@gioia.aioe.org> |
| In reply to | #12567 |
Hi Jamal,
Error 5 is not an error from blat.exe but is defined with 5 when
RunPiped returns False. The RunPiped return codes are
* 0= Ok
* 1= Error MemAlloc()
* 2= Error CreatePipe()
* 3= SetStdHandle()
* 4= Timeout
* 5= Error CreateProcess()
* 6= Error from application
IF CreateProcess( NULL, ;
PTR(_CAST, cCmdLine), ;
NULL,;
NULL,;
TRUE,;
dwFlags,;
NULL,;
NULL,;
@si,;
@PI)
// Code when ok
ELSE
nRet:=5
ENDIF
Franz
Am 23.07.2019 um 03:32 schrieb Jamal:
> See: http://www.blat.net/examples/blat_return_codes.htm
>
> 5 - Error Reading File (message text)
>
> Jamal
>
> "Franz Rachbauer" wrote in message news:qh4isf$1jm3$1@gioia.aioe.org...
> Hi there,
> I'm using a function "RunPiped" to synchron start blat.exe to send an
> email. I found this function somewhere in the net or in the vo usergroup
> (maybe Karl-Heinz?)
>
> At my pc it does well, but at the customer pcs it returns false
> (returncode 5). All pcs with W7 32bit 4GB. The command line is
>
> blat.exe C:\TMP\BLAT.HTM -server alfa3085.alfahosting-server.de -port 25
> -u web128p7 -pw xxxx -subject "Link Cuttings" -to office@visagemodels.at
> -f office@visagemodels.at -log C:\TMP\BLAT.LOG -html -alttextf
> C:\TMP\BLAT.TXT -embed C:\TMP\~PM00001.JPG,h:\cuttings\VISAGE.JPG
>
> Does anyone have an idea what the problem could be?
>
> Regards, Franz
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2019-07-23 13:14 -0400 |
| Message-ID | <qh7f8r$q6b$1@news.albasani.net> |
| In reply to | #12570 |
Hi Franz,
So, the error is when calling CreateProcess(), therefore, use GetLastError()
to see what the actual error code is. See
https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes.
HTH,
Jamal
"Franz Rachbauer" wrote in message news:qh75u9$1cnn$1@gioia.aioe.org...
Hi Jamal,
Error 5 is not an error from blat.exe but is defined with 5 when
RunPiped returns False. The RunPiped return codes are
* 0= Ok
* 1= Error MemAlloc()
* 2= Error CreatePipe()
* 3= SetStdHandle()
* 4= Timeout
* 5= Error CreateProcess()
* 6= Error from application
IF CreateProcess( NULL, ;
PTR(_CAST, cCmdLine), ;
NULL,;
NULL,;
TRUE,;
dwFlags,;
NULL,;
NULL,;
@si,;
@PI)
// Code when ok
ELSE
nRet:=5
ENDIF
Franz
Am 23.07.2019 um 03:32 schrieb Jamal:
> See: http://www.blat.net/examples/blat_return_codes.htm
>
> 5 - Error Reading File (message text)
>
> Jamal
>
> "Franz Rachbauer" wrote in message news:qh4isf$1jm3$1@gioia.aioe.org...
> Hi there,
> I'm using a function "RunPiped" to synchron start blat.exe to send an
> email. I found this function somewhere in the net or in the vo usergroup
> (maybe Karl-Heinz?)
>
> At my pc it does well, but at the customer pcs it returns false
> (returncode 5). All pcs with W7 32bit 4GB. The command line is
>
> blat.exe C:\TMP\BLAT.HTM -server alfa3085.alfahosting-server.de -port
> 25 -u web128p7 -pw xxxx -subject "Link Cuttings" -to
> office@visagemodels.at -f office@visagemodels.at -log
> C:\TMP\BLAT.LOG -html -alttextf C:\TMP\BLAT.TXT -embed
> C:\TMP\~PM00001.JPG,h:\cuttings\VISAGE.JPG
>
> Does anyone have an idea what the problem could be?
>
> Regards, Franz
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2019-07-24 09:51 +0200 |
| Message-ID | <qh92lq$1j7m$1@gioia.aioe.org> |
| In reply to | #12571 |
Hi Jamal, GetLastError() gives 2 FILE_NOT_FOUND, one File was missed at the customers pc. Now it does! THX for help, Franz Am 23.07.2019 um 19:14 schrieb Jamal: > Hi Franz, > > So, the error is when calling CreateProcess(), therefore, use > GetLastError() to see what the actual error code is. See > https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes. > > HTH, > Jamal > > "Franz Rachbauer" wrote in message news:qh75u9$1cnn$1@gioia.aioe.org... > > Hi Jamal, > Error 5 is not an error from blat.exe but is defined with 5 when > RunPiped returns False. The RunPiped return codes are > * 0= Ok > * 1= Error MemAlloc() > * 2= Error CreatePipe() > * 3= SetStdHandle() > * 4= Timeout > * 5= Error CreateProcess() > * 6= Error from application > > IF CreateProcess( NULL, ; > PTR(_CAST, cCmdLine), ; > NULL,; > NULL,; > TRUE,; > dwFlags,; > NULL,; > NULL,; > @si,; > @PI) > // Code when ok > ELSE > nRet:=5 > ENDIF > > Franz > > Am 23.07.2019 um 03:32 schrieb Jamal: >> See: http://www.blat.net/examples/blat_return_codes.htm >> >> 5 - Error Reading File (message text) >> >> Jamal >> >> "Franz Rachbauer" wrote in message news:qh4isf$1jm3$1@gioia.aioe.org... >> Hi there, >> I'm using a function "RunPiped" to synchron start blat.exe to send an >> email. I found this function somewhere in the net or in the vo >> usergroup (maybe Karl-Heinz?) >> >> At my pc it does well, but at the customer pcs it returns false >> (returncode 5). All pcs with W7 32bit 4GB. The command line is >> >> blat.exe C:\TMP\BLAT.HTM -server alfa3085.alfahosting-server.de -port >> 25 -u web128p7 -pw xxxx -subject "Link Cuttings" -to >> office@visagemodels.at -f office@visagemodels.at -log C:\TMP\BLAT.LOG >> -html -alttextf C:\TMP\BLAT.TXT -embed >> C:\TMP\~PM00001.JPG,h:\cuttings\VISAGE.JPG >> >> Does anyone have an idea what the problem could be? >> >> Regards, Franz >
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2019-08-03 16:43 +0200 |
| Message-ID | <qi46ig$1s7q$1@gioia.aioe.org> |
| In reply to | #12572 |
To Paul Siska, can't send you function RunPiped, cause all my emails came back with error. So you can download it at http://www.rachbauer.org/runpiped.zip Regards, Franz
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web