Karen,
Here is the block of code I use to run my VB app, and R:base waits for it to
finish.
I am using R:base for DOS. I think w/ RBW, you can take the command /c out
and just use start /w.
-- generate pdf
if (envval('os')) cont 'NT' and (envval('os')) is not null then
-- win nt
zip cmd /c start /w rdc_pass.exe i:\apps\eap\crystal\qtrly.rpt +
&vfile &vico &vqtr_id
else
-- win 98
zip command /c start /w rdc_pass.exe i:\apps\eap\crystal\qtrly.rpt +
&vfile &vico &vqtr_id
endif
Troy Sosamon
===== Original Message from [EMAIL PROTECTED] at 7/10/02 12:53 pm
>I'm trying to launch to a small VB .exe I wrote that
>collects data from one of those machines like the FedEx
>people have for the customer to sign.
>
>My RBase program will collect some data from the user up
>front, then hopefully launch my VB form, then return to
>RBase to do other processing.
>
>I looked at some messages I saved about this topic and
>report the following:
>
>1. A simple 'launch filename.exe' will launch the VB form
> but it continues on with the RBase program, not waiting.
>
>2. I can put a 'pause 1 using ....' immediately after the
> launch but you do see this message for a couple seconds
> while the VB form is loading, so it can be confusing and
> it does cause the user to hit an unnecessary key when he
> returns back to RBase.
>
>3. I tried zipping to a batch file with:
> SET VAR vcomspec = (ENVVAL("COMSPEC"))
> ZIP &vComSpec /C filename.bat
>
> The batch file has:
> start /wait c:\filename.exe
>
> The RBase program disappears, another open window at random
> seems to come up and take over the screen, I see the DOS
> box open, then my VB form comes up. When I exit the VB form,
> I am back in RBase.
>
> So I guess I can say this works, except it's kinda ugly with
> my word processor all of a sudden back on my screen, a DOS
> box on top of that, and my VB form on top of that! Any way to
> clear up all this clutter?
>
> Also, I'm running Win98. If the computer running is Win2K,
> what should the batch file say instead of the line above?
>
>
>Karen
>
>
>================================================
>TO SEE MESSAGE POSTING GUIDELINES:
>Send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: INTRO rbase-l
>================================================
>TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
>In the message body, put just two words: UNSUBSCRIBE rbase-l
>================================================
>TO SEARCH ARCHIVES:
>http://www.mail-archive.com/rbase-l%40sonetmail.com/
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/