Batch Script tutorial

  • WatchBatch 00 The Windows Command-Line
  • WatchBatch 01 Commands
  • WatchBatch 02 Data Types
  • WatchBatch 03 Variables
  • WatchBatch 04 Environment Variables
  • WatchBatch 05 String "Concatenation"
  • WatchBatch 06 Scripts
  • WatchBatch 07 Notepad to Notepad++
  • WatchBatch 08 Output with Echo
  • WatchBatch 09 Command Arguments
  • WatchBatch 10 Parameter Help
  • WatchBatch 11 The @ Symbol
  • WatchBatch 12 Echo Off
  • WatchBatch 13 "Escape Characters"
  • WatchBatch 14 Mathematical Expressions
  • WatchBatch 15 Modulus Operator [whoops]
  • WatchBatch 16 Input
  • WatchBatch 17 Labels
  • WatchBatch 18 Goto
  • WatchBatch 19 Comments
  • WatchBatch 20 Basic Functions
  • WatchBatch 21 Function Arguments
  • WatchBatch 22 Function "Return"
  • WatchBatch 23 Function Local Scope
  • WatchBatch 24 Script Local Scope
  • WatchBatch 25 "Return" in Local Functions
  • WatchBatch 26 Returning Passed in Variables
  • WatchBatch 27 If Statement
  • WatchBatch 28 Comparison Operators
  • WatchBatch 29 Else Statement
  • WatchBatch 30 Nesting
  • WatchBatch 31 Delayed Variable Expansion
  • WatchBatch 32 "While Loop"
  • WatchBatch 33 For Loop Introduction
  • WatchBatch 33.5 The "Set"
  • WatchBatch 34 For through Numbers
  • WatchBatch 35 For through Directories
  • WatchBatch 36 For through Files
  • WatchBatch 37 For through File Content
  • WatchBatch 38 For Options
  • WatchBatch 39 For 'EOL' Option
  • WatchBatch 40 For Command Output
  • WatchBatch 41 For through String
  • WatchBatch 42 Breakin' Outta the For Loop
  • WatchBatch 43 Intro to Redirection
  • WatchBatch 44 More Redirection
  • WatchBatch 45 Some More Redirection
  • WatchBatch 46 Even More Redirection
  • WatchBatch 47 Working with Folders
  • WatchBatch 48 Moving and Renaming

Step 6: Done. Well done! Please continue to the Not So Basic Batch Tutorial for some cool Batch commands! If you want to try something offline, I recommend getting Learn Batch File Programming! by John Albert, really simple, easy to follow and great if you want to get better!
Batch Scripts are stored in simple text files containing lines with commands that get executed in sequence, one after the other. Scripting is a way by which one can alleviate this necessity by automating these command sequences in order to make one’s life at the shell easier and more productive. This tutorial discusses the …

You may also like...