💻

Getting Started with Batch Scripting

Aug 2, 2024

Introduction to Batch Scripting Tutorial

Presenter Introduction

  • Root of N (from NoshShow.com)
  • Website features: code, videos, animations, personal projects

Overview of Batch Scripting

  • Batch is a scripting language for Windows.
  • Focus on working within the CMD (Command Prompt).

Opening the Command Prompt in Windows 7

  • Options to open CMD:
    • Start Menu: Type "CMD" in the search.
    • Run Command: Press Windows Key + R, then type "CMD".
    • Command Prompt is also referred to as:
      • Shell
      • Console
      • Terminal

History and Evolution of CMD

  • Origin from MS-DOS (Microsoft Disk Operating System).
  • CMD replaced command.com with:
    • cmd.exe for 32-bit/64-bit systems.
    • Enhanced functionality and more commands.

Command Execution Process

  • Interpreter: Reads and executes commands line by line.
  • Difference between scripting (batch) and programming languages:
    • Scripting: Directly interpreted by an interpreter (e.g., cmd.exe).
    • Programming: Requires a compiler to convert code into binary.

Understanding Commands in CMD

  • Internal and External Commands:
    • Internal: Built into CMD.
    • External: Separate executable programs.
  • Batch Files: Lists of commands for cmd.exe to interpret.

File System Path Example

  • Default path for CMD: C:\Windows\System32
  • Contains various DLLs and programs callable from CMD.

Conclusion

  • This video serves as an introduction to batch scripting.
  • Future videos will cover writing and executing batch scripts.
  • Encouragement to follow along in the series.