Is it possible to call RUN and send parameters to the called program?

In particular, I'm trying to pass a handle to a WinAPI object.

Re: RUN with parameters? by Dan

Dan
Tue Jun 28 15:08:19 CDT 2005

Of course you can pass parameters on the command line. HOWEVER, they're
always passed as strings.

Dan

Paul Pedersen wrote:
> Is it possible to call RUN and send parameters to the called program?
>
> In particular, I'm trying to pass a handle to a WinAPI object.



Re: RUN with parameters? by christophe

christophe
Tue Jun 28 14:51:53 CDT 2005

Paul,

Is it this what you are looking for ?
RUN net Time \\someserver /Set /yes
just add the parameters you want to send when starting the app.
but the app will need to accept startup parameters.

or is it :
Run Someapp.exe
and then start controling it or fill some textboxes presented by Someapp ?
If this last one is the case Others might help ?
but I really doubt if this will be an easy one...

regards
christophe
--
\|||/
(o o)
----ooO-(_)-Ooo-------------


"Paul Pedersen" <no-reply@swen.com> schreef in bericht
news:ePQFSXBfFHA.2736@TK2MSFTNGP12.phx.gbl...
> Is it possible to call RUN and send parameters to the called program?
>
> In particular, I'm trying to pass a handle to a WinAPI object.
>
>
>
>



Re: RUN with parameters? by Paul

Paul
Tue Jun 28 18:11:41 CDT 2005

It's closer to #2. I think I'll have to find another way to do this.



"christophe" <irs.znospamforme@skynet.be> wrote in message
news:%23vAjGGCfFHA.1472@TK2MSFTNGP12.phx.gbl...
> Paul,
>
> Is it this what you are looking for ?
> RUN net Time \\someserver /Set /yes
> just add the parameters you want to send when starting the app.
> but the app will need to accept startup parameters.
>
> or is it :
> Run Someapp.exe
> and then start controling it or fill some textboxes presented by Someapp ?
> If this last one is the case Others might help ?
> but I really doubt if this will be an easy one...
>
> regards
> christophe
> --
> \|||/
> (o o)
> ----ooO-(_)-Ooo-------------
>
>
> "Paul Pedersen" <no-reply@swen.com> schreef in bericht
> news:ePQFSXBfFHA.2736@TK2MSFTNGP12.phx.gbl...
>> Is it possible to call RUN and send parameters to the called program?
>>
>> In particular, I'm trying to pass a handle to a WinAPI object.
>>
>>
>>
>>
>
>



Re: RUN with parameters? by Bernhard

Bernhard
Wed Jun 29 04:01:55 CDT 2005

Hi Paul

> In particular, I'm trying to pass a handle to a WinAPI object.
Just curious: how do you want to RUN a WinAPI object?

Regards
Bernhard Sander

Re: RUN with parameters? by Paul

Paul
Thu Jun 30 13:45:57 CDT 2005

What I was trying to do (maybe a dumb idea), was to have EXE1 create a mutex
and/or semaphore object, pass it to EXE2, then EXE1 quits.

I suppose I could manage something similar with a flag file, but I want to
be absolutely certain that the flag file is deleted when EXE2 ends. Under
normal conditions, that's not a problem, but under someone-pulled-the-plug
conditions, it IS a problem.



"Bernhard Sander" <fuchs@individsoft.de> wrote in message
news:uduF0kIfFHA.3300@TK2MSFTNGP10.phx.gbl...
> Hi Paul
>
>> In particular, I'm trying to pass a handle to a WinAPI object.
> Just curious: how do you want to RUN a WinAPI object?
>
> Regards
> Bernhard Sander



Re: RUN with parameters? by Fred

Fred
Thu Jun 30 20:23:06 CDT 2005

Then just lock a record in a common data table. If either one crashes, the
lock will go away.

--
Fred
Microsoft Visual FoxPro MVP


"Paul Pedersen" <no-reply@swen.com> wrote in message
news:%235t40PafFHA.576@TK2MSFTNGP15.phx.gbl...
> What I was trying to do (maybe a dumb idea), was to have EXE1 create a
> mutex and/or semaphore object, pass it to EXE2, then EXE1 quits.
>
> I suppose I could manage something similar with a flag file, but I want to
> be absolutely certain that the flag file is deleted when EXE2 ends. Under
> normal conditions, that's not a problem, but under someone-pulled-the-plug
> conditions, it IS a problem.
>
>
>
> "Bernhard Sander" <fuchs@individsoft.de> wrote in message
> news:uduF0kIfFHA.3300@TK2MSFTNGP10.phx.gbl...
>> Hi Paul
>>
>>> In particular, I'm trying to pass a handle to a WinAPI object.
>> Just curious: how do you want to RUN a WinAPI object?
>>
>> Regards
>> Bernhard Sander
>
>



Re: RUN with parameters? by Paul

Paul
Fri Jul 01 10:31:23 CDT 2005

Hey, good idea. And I can put any messaging between the two in that record,
too.

Thanks!



"Fred Taylor" <ftaylor@mvps.org!REMOVE> wrote in message
news:%23ZkwwtdfFHA.1412@TK2MSFTNGP09.phx.gbl...
> Then just lock a record in a common data table. If either one crashes,
> the lock will go away.
>
> --
> Fred
> Microsoft Visual FoxPro MVP
>
>
> "Paul Pedersen" <no-reply@swen.com> wrote in message
> news:%235t40PafFHA.576@TK2MSFTNGP15.phx.gbl...
>> What I was trying to do (maybe a dumb idea), was to have EXE1 create a
>> mutex and/or semaphore object, pass it to EXE2, then EXE1 quits.
>>
>> I suppose I could manage something similar with a flag file, but I want
>> to be absolutely certain that the flag file is deleted when EXE2 ends.
>> Under normal conditions, that's not a problem, but under
>> someone-pulled-the-plug conditions, it IS a problem.
>>
>>
>>
>> "Bernhard Sander" <fuchs@individsoft.de> wrote in message
>> news:uduF0kIfFHA.3300@TK2MSFTNGP10.phx.gbl...
>>> Hi Paul
>>>
>>>> In particular, I'm trying to pass a handle to a WinAPI object.
>>> Just curious: how do you want to RUN a WinAPI object?
>>>
>>> Regards
>>> Bernhard Sander
>>
>>
>
>