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?