Difference between revisions of "Batch Script"

From BC$ MobileTV Wiki
Jump to: navigation, search
Line 45: Line 45:
 
* Getting the Most out of Windows Command Prompt: http://www.powercram.com/2009/12/getting-most-out-of-windows-command.html
 
* Getting the Most out of Windows Command Prompt: http://www.powercram.com/2009/12/getting-most-out-of-windows-command.html
 
* TCP/IP and Networking Tools: http://commandwindows.com/tcpiputil.htm
 
* TCP/IP and Networking Tools: http://commandwindows.com/tcpiputil.htm
 +
* Is there anything that Windows does better than OS X?: http://www.quora.com/Is-there-anything-that-Windows-does-better-than-OS-X (ANSWER: PowerShell)
  
 
== References ==
 
== References ==

Revision as of 18:03, 21 September 2015

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