Larry, I'd like to ask a further question about this solution, please:
How do I get parameters with the batch file passed into the VBS program? It looks to me as a complete novice that WScript.Arguments(0) either needs to be changed to reflect the number of parameters or repeated in some way. What I am trying to do is run a batch file that changes the attrib setting and pass in the drive and +R or -R: LAUNCH InvisibleDOS.VBS|C:\DosPrograms\Attrib.BAT I: -R|W Attrib.BAT works fine on its own with the parameters as does InvisibleDOS.VBS with another bat file without any extra parameters. Thanks in advance for any clues you can offer, Regards, Alastair. ----- Original Message ----- From: Lawrence Lustig To: RBASE-L Mailing List Sent: Thursday, July 24, 2008 3:34 PM 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.5/1570 - Release Date: 24/07/2008 06:59

