Batch Script

From BC$ MobileTV Wiki
Revision as of 18:03, 21 September 2015 by Joe (Talk | contribs)

Jump to: navigation, search

A Batch Script is a piece of system-level program logic which can control specific system functions via a command prompt (most commonly Batch is supported in Windows server environments but may be ported to others).


Commands

To pass a specific command-line input parameter from a Batch script to a called program within it, use:

%1 %2 %3 ... %15

For the first, second, third and fifteenth parameter (etc).

To pass through all command-line input parameters from a Batch script to a called program within it, use:

%*

[1]




Resources


Tutorials


External Links

References

  1. Is there a way to indicate the last n parameters in a batch file?: http://stackoverflow.com/questions/761615/is-there-a-way-to-indicate-the-last-n-parameters-in-a-batch-file
  2. http://stackoverflow.com/questions/12606609/autorun-inf-doesnt-work

See Also

Shell Script | Windows | DOS