Sideway
output.to from Sideway
Draft for Information Only

Content

MS DOS Command: CALL
  Description
  Syntax
  Parameters
  Remarks
   Using batch-parameters
   Using pipes and redirection symbols
   Making a recursive call
  Examples

MS DOS Command: CALL

Reference from Microsoft MS-DOS cmd help

Description

Calls one batch program from another without causing the first batch program to stop.

Syntax

CALL [drive:][path]filename [batch-parameters]

Parameters

[drive:][path]filename Specifies the location and name of the batch program you want to call. Filename must have a .BAT extension.
batch-parameters Specifies any command-line information required by the batch program.

Remarks

Using batch-parameters

Batch-parameters can contain any information that you can pass to a batch program, including switches, filenames, the replaceable parameters %1 through %9, and environment variables such as %baud%.

Using pipes and redirection symbols

Do not use pipes ("|") and redirection symbols ("<<","<",">", and ">>") with the CALL command.

Making a recursive call

You can create a batch program that calls itself; however, you must provide an exit command. Otherwise, the parent and child batch programs can loop endlessly.

Examples

To run the CHECKNEW.BAT program from another batch program, include the following command in the parent batch program:

call checknew

Suppose the parent batch program accepts two replaceable parameters and you want it to pass those parameters to CHECKNEW.BAT. You can use the following command in the parent batch program:

call checknew %1 %2


©sideway

ID: 110700135 Last Updated: 7/21/2011 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 249

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019