Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- BHELP On-Line: CBRIEF Macro Help - dos([command],[use_dos_shell]) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dos([command],[use_dos_shell])

     Usage: Executes a DOS command from inside BRIEF or causes a
            shell to DOS. The command is located by searching the DOS
            PATH for a .com or .exe file.  If the command is not found,
            then it is passed directly to DOS (since it might be an
            internal command or .bat file).
            +--------------------------------------------------------+
            |NOTE: Some programs can clobber BRIEF, especially those |
            |using pre-DOS 2.0 memory allocation calls.  It is always|
            |safest to save all modified buffers before using dos.   |
            +--------------------------------------------------------+

Parameters: Command .string. is the command to be executed.  If
            omitted, a DOS shell is created instead, from which the
            user must type EXIT to return to BRIEF. Parameters may be
            included in the string, delimited by spaces. Redirection
            of standard input and output is allowed (including
            appending), but not pipes. Standard error can be redirected
            to the same file as standard output by using >& or >>&.
            If standard error is redirected, BRIEF will not clear the
            screen before and after the command executes.  Use_dos_shell
            .int. is 0 to skip passing the command to DOS (only look
            along the path), non-0 or omitted to try the DOS shell too.

   Returns: DOS error level returned by the command, or the DOS shell
            error value if executed by the shell. Some of the error
            codes possible are:
                        2           File not found
                        3           Path not found
                        4           Too many open files
                        5           Access denied
                        8           Insufficient memory
                        15          Invalid drive
            Other codes can be found in the DOS Tech Reference.

See Also: cd del date exist getwd time

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson