Code Comments
Programming Forum and web based access to our favorite programming groups.I am using clarion 5.5. and I use the run command to run some exe's that I p ass command line stuff to and it does a simple function, and requires no fur ther 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 th is machine. Is here a way to get the code to execute and fully execute with out 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 'f irst 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. B ut everyone's help is greatly appreciated, as I have seen more and more post s 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
Post Follow-up to this messageHave 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
Post Follow-up to this messageScott, 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@c orp.supernews.com... I am using clarion 5.5. and I use the run command to run some exe's that I p ass command line stuff to and it does a simple function, and requires no fur ther 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 th is machine. Is here a way to get the code to execute and fully execute with out 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 'f irst 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. B ut everyone's help is greatly appreciated, as I have seen more and more post s 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
Post Follow-up to this messageTry 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.73 15@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 > > --
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.