Re: Win32Lib: how run another program?

new topic     » goto parent     » topic index » view thread      » older message » newer message

not sure if this will do what you want, but u can try:
constant RunInBackGround = "start /m "
constant RunInForeGround = "start /max "
consant ProgramToRun      = "C:\\directory\\program.exe"

procedure BGRun(sequence filename)
   system(RunInBackGround & filename,2)
end procedure

procedure FGRun(sequence filename)
   system(RunInForeGround & filename,2)
end procedure

code isnt tested, but i remember experimenting with
the "start" command in windows and being pleasantly
suprised...also i KNOW that i was using it at one
time in the past for EUServer...

hope this will work for u as u want it to...
typing "start /?" at a dos prompt will
give you more info about it...
--Hawke'
----- Original Message -----
From: Kat <gertie at PELL.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Wednesday, August 30, 2000 9:40 PM
Subject: Re: Win32Lib: how run another program?


> On 30 Aug 2000, at 20:53, Dan B Moyer wrote:
>
> > How can I make another Euphoria program run from within one that is running?
> > I tried looking at David Cuny's IDE, which runs the program under
> > development, but I don't really understand what it means.  Here's what I
> > found that apparently does it:
> >
> >         result = system_exec( "exw \"" & fName & "\"", 2 )
> >
> > what I specifically don't understand is the "exw\" & the "\" & the 2
> > <sickly grin>
>
> What i'd like to know is: does windoze start fName and come right back to the
> next
> line after that, leaving fName to go on about it's business as a standalone
> application?
> smile)
>
> Kat,
> hoping!
>


____________NetZero Free Internet Access and Email_________
Download Now     http://www.netzero.net/download/index.html
Request a CDROM  1-800-333-3633
___________________________________________________________

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu