For Programmers: Free Programming Magazines  


Home > Archive > Clipper > March 2005 > Clipper run command problems









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Clipper run command problems
comsat@pdq.net

2005-03-15, 3:55 am

I have a clipper app that uses overlays. I cannot get the run command
to do anything. If I recompile the app without overlays then I get a
'Line 590 Run error' with no further explanation. When I run it
compiled with overlays - it just seems to skip right over the run
command. However, if I change the command.com to another version I got
an error so I don't really think it is actually skipping over the
command. I have tried using the run command as follows:

run blat15.exe c:\certmail.txt -t markc@communisat.com

and

run 'blat15.exe c:\certmail.txt -t markc@communisat.com'

and

xcommand = 'blat15.exe c:\certmail.txt -t markc@communisat.com'
run xcommand

and

xcommand = 'blat15.exe c:\certmail.txt -t markc@communisat.com'
run &xcommand

among other ways.... in addition I have environmental space to 2046
using the /e:2046 at the end on the comspec line.

I can type that line (the blat command above) in at the dos prompt and
it runs fine. I can go to dclip and type run dir or run cmd.exe and it
works fine.....hmmm I have not tried the actual blat line from within
dclip. I will try that next but I doubt it will help the app in
running it.....

Please Help

SIGNED
Very Frustrated
Andreas Moroder

2005-03-15, 8:55 am

comsat@pdq.net schrieb:
> I have a clipper app that uses overlays. I cannot get the run command
> to do anything. If I recompile the app without overlays then I get a
> 'Line 590 Run error' with no further explanation. When I run it
> compiled with overlays - it just seems to skip right over the run
> command. However, if I change the command.com to another version I got
> an error so I don't really think it is actually skipping over the
> command. I have tried using the run command as follows:
>
> run blat15.exe c:\certmail.txt -t markc@communisat.com
>
> and
>
> run 'blat15.exe c:\certmail.txt -t markc@communisat.com'
>
> and
>
> xcommand = 'blat15.exe c:\certmail.txt -t markc@communisat.com'
> run xcommand
>
> and
>
> xcommand = 'blat15.exe c:\certmail.txt -t markc@communisat.com'
> run &xcommand
>
> among other ways.... in addition I have environmental space to 2046
> using the /e:2046 at the end on the comspec line.
>
> I can type that line (the blat command above) in at the dos prompt and
> it runs fine. I can go to dclip and type run dir or run cmd.exe and it
> works fine.....hmmm I have not tried the actual blat line from within
> dclip. I will try that next but I doubt it will help the app in
> running it.....
>
> Please Help
>
> SIGNED
> Very Frustrated

Hello,

did you try passing the full path to blat ?

Bye
Andreas
comsat@pdq.net

2005-03-15, 3:55 pm

Thanks Andreas for the reply - yep have tried putting blat.exe in c:\
and giving it that path and also put blat in the same dir as the
clipper app. Neither works. It's not just blat tho. When I am running
overlays no matter what I put in after the run command, it doesn't do
it. For example I tried

Run dir

Run cmd.exe

Run Command.com

None of these did anything - something very strange going on.....

Andreas Moroder <Andreas.moroder@[nospam]sb-brixen.it> wrote:

>comsat@pdq.net schrieb:
>Hello,
>
>did you try passing the full path to blat ?
>
>Bye
>Andreas


CAVO

2005-03-15, 3:55 pm

Try using blinker and change the command run for
swpruncmd('command',0,'c:','c:')

MV

<comsat@pdq.net> wrote in message
news:42371616.433934437@news.xspedius.net...
> Thanks Andreas for the reply - yep have tried putting blat.exe in c:\
> and giving it that path and also put blat in the same dir as the
> clipper app. Neither works. It's not just blat tho. When I am running
> overlays no matter what I put in after the run command, it doesn't do
> it. For example I tried
>
> Run dir
>
> Run cmd.exe
>
> Run Command.com
>
> None of these did anything - something very strange going on.....
>
> Andreas Moroder <Andreas.moroder@[nospam]sb-brixen.it> wrote:
>
>



Jarek Kadziola

2005-03-16, 3:55 am

Hello,

> I can type that line (the blat command above) in at the dos prompt and
> it runs fine. I can go to dclip and type run dir or run cmd.exe and it
> works fine.....hmmm I have not tried the actual blat line from within
> dclip. I will try that next but I doubt it will help the app in
> running it.....


Run your clipper app from batch file 'app.bat':

@echo off
....
....
app.exe
IF ERRORLEVEL 167 GOTO OPTION3
IF ERRORLEVEL 166 GOTO OPTION2
IF ERRORLEVEL 165 GOTO OPTION1
....
....
:option1
call prog1.bat
goto ok

:option2
goto end

:option3
call prog2.bat
goto ok

:ok
app.bat

:end
cls


In clipper source code instead of run command you must write:

.....
ErrorLevel(167)
Quit
.....

and in prog2.bat include command:

blat15.exe c:\certmail.txt -t markc@communisat.com

with full path to blat.exe

After this batch return to 'app.exe'

--
Regards,
J. Kadziola

(cut 'wytnijto')

Ant?nio

2005-03-16, 3:55 pm

comsat,

[snip]
>
> run blat15.exe c:\certmail.txt -t markc@communisat.com
>
> and
>
> run 'blat15.exe c:\certmail.txt -t markc@communisat.com'
>
> and
>
> xcommand = 'blat15.exe c:\certmail.txt -t markc@communisat.com'
> run xcommand
>
> and
>
> xcommand = 'blat15.exe c:\certmail.txt -t markc@communisat.com'
> run &xcommand

[snip]

Could you have a try with the parenteses ?
run ('blat15.exe c:\certmail.txt -t markc@communisat.com')

With XP this works for me in SOME cases (my laptop, for exemple) but I
still cant make this work with some other XP installations (out of
memory error)...

HTH
António Vila-Chã
Portugal
comsat@pdq.net

2005-03-16, 3:55 pm

Thanks guys for all the help - I did get it running using the blink
run command. I also had to set comspec to command.com as xp defaults
comspec to cmd.exe - the combination of these two things solved the
issue.

Again thanks for all the suggestions....very much appreciated!

mlc

Jarek Kadziola <kadziolawytnijto@tlen.pl> wrote:

>Hello,
>
>
>Run your clipper app from batch file 'app.bat':
>
>@echo off
>...
>...
>app.exe
>IF ERRORLEVEL 167 GOTO OPTION3
>IF ERRORLEVEL 166 GOTO OPTION2
>IF ERRORLEVEL 165 GOTO OPTION1
>...
>...
>:option1
>call prog1.bat
>goto ok
>
>:option2
>goto end
>
>:option3
>call prog2.bat
>goto ok
>
>:ok
>app.bat
>
>:end
>cls
>
>
>In clipper source code instead of run command you must write:
>
>....
>ErrorLevel(167)
>Quit
>....
>
>and in prog2.bat include command:
>
>blat15.exe c:\certmail.txt -t markc@communisat.com
>
>with full path to blat.exe
>
>After this batch return to 'app.exe'
>
>--
>Regards,
>J. Kadziola
>
>(cut 'wytnijto')
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com