I tried this on my computer.
This only works if scripting is enabled, which it is not on my computer due to 
our security policy.

The zip command I posted works.
There is a quick flash of a console window and then the batch file runs 
minimized.
Also, I found out that in 7.6 for windows, zip returns immediately so even if 
your batch takes some time, control returns immediately to RBASE,

Dennis McGrath


________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Lawrence Lustig
Sent: Thursday, July 24, 2008 9:35 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Silent LAUNCH command.

Thank you Marc.  I adapted the solution found here:

http://www.computing.net/answers/dos/run-batch-file-invisiblestealth/14270.html

to produce a completely silent batch file runner.

The solution is to create a single line VBS program like this:

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

and then LAUNCH that VBS program from R:Base, passing the name of the batch 
file (or other command line) as the argument.  I called my VBS script 
"launcher.vbs".

So in my program I replaced:

LAUNCH SendFax.BAT

with

LAUNCH launcher.vbs|SendFax.BAT

The VBS doesn't create a DOS console, and the Shell command inside the VBS 
doesn't either.
--
Larry

Reply via email to