So Doc >> batch-file
28 Topics
Getting started with batch-file Introduction Topic
Comments in Batch Files
Comments are used to show information in a batch script.
Variables in Batch Files
Echo
echo
can be used to control and produce output.
Differences between Batch (Windows) and Terminal (Linux)
Batch and bash are quite different. Batch flags are indicated with a /
, while bash flags use a -
. Capitalization matters in bash, but (almost) not at all in batch. Batch variable names can contain spaces, bash variable names can not.
Ultimately, both are ways of manipulating and interacting with the command line. Not surprisingly, there is a reasonably-sized amount of overlap between the capabilities of the two systems.
Escaping special characters
In all cmd.exe
and DOS
version, some characters are reserved for specific usage(e.g. command redirection). This topic will talk about how to use the special characters without issues.
Changing Directories and Listing their Contents
File Handling in batch files
In this topic you will learn how to create, edit, copy, move, and delete files in batch.
Bypass arithmetic limitations in batch files
Batch files allows only 32bit integer calculations , though this can be bypassed with different approaches.
Batch and JSCript hybrids
JScript
is actually the superset of Javascript
(it's 1.8.1 version - so some newer features are not available ), and they can be embedded into a batch
script for extending batch
script's functions. Usually, techniques of embedding are using the JScript directives (not part of the official Javascript standard) in order to separate the batch and JScript code. JScript allows you to work with Com/ActiveX objects, as well as with WMI objects in addition to the standard Javascript.