Home > Archive > Clarion > September 2004 > hide counsel window that pops up when using RUN(
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 |
hide counsel window that pops up when using RUN(
|
|
| Scott Tabor 2004-09-03, 8:55 pm |
| I am using clarion 5.5. and I use the run command to run some exe's that I pass command line stuff to and it does a simple function, and requires no further user input. So what happens is it runs and a black dos window pops up until it has finished doping its processing.
My problem is this procedure is on a timed matter and on a workstation that is used all day, this black box can't keep popping up every 30 seconds on this machine. Is here a way to get the code to execute and fully execute without having a DOS window pop up? or at least hide the window and not make it visible?
I have seen posts suggesting different add-ons, but it's my companies policy that the apps we distribute include no 3rd party anything.
What I am hoping for is someone to lead me in the right direction like IE 'first you have to get the handle on this, you do this by doing this, and then you set this parameter here, wah-lah!' I'm asking for a miracle I know. But everyone's help is greatly appreciated, as I have seen more and more posts pertaining to this, and very few solutions that don't include a 3rd party tool. Some of us programmers are on a TIGHT budget <g>
Thanks a lot!
Scott Tabo
| |
|
| Have you tried using the WinExec() API instead of RUN?
At least you can control the state of display.
Just a thought
Frank Uhlik
Brisbane Australia
| |
| David S. Beggs 2004-09-06, 3:55 am |
| Scott,
check out Power Run - it's free - and soes what you need I think.
http://www.berthume.com/powerrun.htm
HTH
Dave Beggs
Australia
www.dsbglobal.com/dosprinter
"Scott Tabor" <scottsinjail@aol.com> wrote in message news:10jhl1unj1n9la3@corp.supernews.com...
I am using clarion 5.5. and I use the run command to run some exe's that I pass command line stuff to and it does a simple function, and requires no further user input. So what happens is it runs and a black dos window pops up until it has finished doping its processing.
My problem is this procedure is on a timed matter and on a workstation that is used all day, this black box can't keep popping up every 30 seconds on this machine. Is here a way to get the code to execute and fully execute without having a DOS window pop up? or at least hide the window and not make it visible?
I have seen posts suggesting different add-ons, but it's my companies policy that the apps we distribute include no 3rd party anything.
What I am hoping for is someone to lead me in the right direction like IE 'first you have to get the handle on this, you do this by doing this, and then you set this parameter here, wah-lah!' I'm asking for a miracle I know. But everyone's help is greatly appreciated, as I have seen more and more posts pertaining to this, and very few solutions that don't include a 3rd party tool. Some of us programmers are on a TIGHT budget <g>
Thanks a lot!
Scott Tabo
| |
|
| Try using the ShellExecute API. You can read up on it on MSDN. It
allows you to 'execute' a file and have the window hidden. This should
solve your problem. I have used this in the past to run a dos batch
file without the black window you speak about popping up.
"David S. Beggs" <dosprinter@nospam.dsbglobal.com> wrote in message news:<DeA_c.20082$D7.7315@news-server.bigpond.net.au>...
> Scott,
> check out Power Run - it's free - and soes what you need I think.
> http://www.berthume.com/powerrun.htm
> HTH
> Dave Beggs
> Australia
> www.dsbglobal.com/dosprinter
> "Scott Tabor" <scottsinjail@aol.com> wrote in message
> news:10jhl1unj1n9la3@corp.supernews.com...
> I am using clarion 5.5. and I use the run command to run some exe's
> that I pass command line stuff to and it does a simple function, and
> requires no further user input. So what happens is it runs and a black
> dos window pops up until it has finished doping its processing.
>
> My problem is this procedure is on a timed matter and on a workstation
> that is used all day, this black box can't keep popping up every 30
> seconds on this machine. Is here a way to get the code to execute and
> fully execute without having a DOS window pop up? or at least hide the
> window and not make it visible?
>
> I have seen posts suggesting different add-ons, but it's my companies
> policy that the apps we distribute include no 3rd party anything.
>
> What I am hoping for is someone to lead me in the right direction like
> IE 'first you have to get the handle on this, you do this by doing this,
> and then you set this parameter here, wah-lah!' I'm asking for a
> miracle I know. But everyone's help is greatly appreciated, as I have
> seen more and more posts pertaining to this, and very few solutions that
> don't include a 3rd party tool. Some of us programmers are on a TIGHT
> budget <g>
>
>
>
> Thanks a lot!
>
> Scott Tabo
>
> --
|
|
|
|
|