-- the slash-c tells the command processor to exit when done
Does the slash c exit Rbase when finished or can I still run the current
Rbase macro that I am using to call the DOS batch file?

-----Original Message-----
From: Bill Downall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 8:12 AM
To: [EMAIL PROTECTED]
Subject: [RBASE-L] - Re: Running a DOS batch file


Yes, but how may depend upon your operating system. In XP, NT, and 
2000, the preferred "command processor" is cmd.exe, in 95, 98 it is 
command.com. You need to run the command processor, and hand it 
your batch file as a parameter.

Here is how many of us do it:
============================================
SET VAR vComSpec = (ENVVAL('COMSPEC'))
-- that finds the environment variable specifying the command 
-- processor, including it's path, which is important
-- it sets the variable to something like c:\windows\system32\cmd.exe

SET VAR vMyBatchFile = (CVAL('CURRDIR') + '\' + 'mybatch.bat')
-- it never hurts to be very specific about locations

SET VAR vMyBatchCommand = +
  ('ZIP' & .vComspec & '/C' & .vMyBatchFile)
-- the slash-c tells the command processor to exit when done

&vMyBatchCommand
============================================
Bill

On Thu, 13 Feb 2003 08:01:46 -0600, Charles Parks wrote:

>Is there a way to run a dos batch file from inside of Rbase?

Reply via email to