Command: call

  CALL calls one batch program for another.
  CALL is a BATCH-FILE / AUTOEXEC.BAT command.

Syntax:

  CALL [/S | /N] [/Y] [drive][path]filename [batch-parameters]
       drive     The drive letter, e.g. C:
       path      The directory, e.g. \example\
       filename  The batch file to be called

[Main menu] [top] (Syntax) [Options] [Comments] [Examples] [See also] [File]

Options:

  batch-parameters   Specifies any command-line information required by 
                     the batch program, e.g. test.bat
  /S                 Enforces swapping of FreeCOM
  /N                 Prevents swapping of FreeCOM
  /Y                 Enables tracemode during execution of the command

[Main menu] [top] [Syntax] (Options) [Comments] [Examples] [See also] [File]

Comments:

  When the called batch file is complete, the processing of the original 
  batch file resumes.
  Batch files can be run directly from another batch file without the call 
  command, but processing of the original batch file will not be resumed. 
  CALL is a command internal to command.com and needs no other file
  in order to work.

[Main menu] [top] [Syntax] [Options] (Comments) [Examples] [See also] [File]

Examples:

  IN A .BAT FILE / AUTOEXEC.BAT:
    call c:\fdos\bin\defrag.exe

[Main menu] [top] [Syntax] [Options] [Comments] (Examples) [See also] [File]

See also:

  autoexec.bat
  batch files

[Main menu] [top] [Syntax] [Options] [Comments] [Examples] (See also) [File]

File:

  Please read this command's lsm file also.
  You will find the updated version (internet) here and
  the version described in this manual page here.
  The lsm file contains information about the name of the programmer,
  the download site, and some other command related information.

[Main menu] [top] [Syntax] [Options] [Comments] [Examples] [See also] (File)


  Copyright © 2003 Robert Platt, updated 2007 by W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.