SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
Windows Batch
Scripting
2011 - The Diary of Nostalgia
Instructor:
Arghodeep Paul
Firmware Engineer at BitBible Technologies Pvt. Ltd.
Content Author: Arghodeep Paul
License: OpenSource
Date: 10 July 2021
Introduction
Command:
A command is nothing but a word/keyword that instructs the system to do a specific
task. Commands are of two types internal and external.
Internal Command:
An internal Command is the built in Command which is not depended on any other
thing. These come with the operating system from the very beginning. Whenever
you install an Operating System then the built in commands also get installed.
Internal commands might be embedded into a file like Command.com(Windows) or
installed individually(Linux). E.g. cls, color, help, dir, cd, date, time
External Command:
These are external programs downloaded from the internet and after locating the
correct path they can only be run. E.g. mp3play, python, node, npm, bcrypt
Commands:
date /t
time /t
Command Prompt:
This is a black screen Application that provides CLI(Command Line Interface). One
needs to enter the commands to this window and hit enter. Then the command will
be sent to the System’s Shell. Shell is the actual command interpreter. You could
open multiple Command Prompt windows and each will have distinct Process IDs.
Their job is to only taking the Command from the User.
Command Host:
A Command is either the built-in one or external program. They need to
communicate with the Command Host/Command Processor. Which is nothing but
the Shell and more precisely Command Shell. Be it command shell or power shell,
they all belong to the Operating System’s Shell compartment.
Windows Batch File:
Batch refers to the batch execution of commands. If you want to execute 100
commands in a sequence then batch file is the solution. Instead of manually entering
commands one by one you create a list of those commands in a TextEditor and save
the file with .bat extension.
Generate Executable from Batch File:
A Batch File is editable anytime. That make the Script vulnerable to unwanted
change of source code. In order to make a batch file non editable one has to convert
the file to exe. This process is also known as .bat to .exe.
Using Third Party Software:
Developer: Fatih Kodak(Germany)

More Related Content

What's hot (20)

Polygon clipping
Polygon clipping
Mohd Arif
 
Dialog box in vb6
Dialog box in vb6
Saroj Patel
 
Backtracking Algorithm.ppt
Backtracking Algorithm.ppt
SalmIbrahimIlyas
 
Introduction to computer graphics
Introduction to computer graphics
Priyodarshini Dhar
 
Polygon filling
Polygon filling
Mohanlal Sukhadia University (MLSU)
 
Deadlock in operating systems
Deadlock in operating systems
jamunaashok
 
NFA to DFA
NFA to DFA
Animesh Chaturvedi
 
Color models
Color models
Haitham Ahmed
 
Compilers
Compilers
Bense Tony
 
Remote Procedure Call in Distributed System
Remote Procedure Call in Distributed System
PoojaBele1
 
Computer languages 11
Computer languages 11
Muhammad Ramzan
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
 
Programming Language
Programming Language
Laukesh Jaishwal
 
Randomized Algorithm
Randomized Algorithm
Kanishka Khandelwal
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
Arvind Kumar
 
Cohen-Sutherland Line Clipping Algorithm
Cohen-Sutherland Line Clipping Algorithm
Maruf Abdullah (Rion)
 
Structured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and Design
Motaz Saad
 
Chapter18
Chapter18
gourab87
 
Bundled Attributes by R.Chinthamani.pptx
Bundled Attributes by R.Chinthamani.pptx
SindhuVelmukull
 
DDA algorithm
DDA algorithm
Yash Patel
 
Polygon clipping
Polygon clipping
Mohd Arif
 
Dialog box in vb6
Dialog box in vb6
Saroj Patel
 
Backtracking Algorithm.ppt
Backtracking Algorithm.ppt
SalmIbrahimIlyas
 
Introduction to computer graphics
Introduction to computer graphics
Priyodarshini Dhar
 
Deadlock in operating systems
Deadlock in operating systems
jamunaashok
 
Remote Procedure Call in Distributed System
Remote Procedure Call in Distributed System
PoojaBele1
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
Arvind Kumar
 
Cohen-Sutherland Line Clipping Algorithm
Cohen-Sutherland Line Clipping Algorithm
Maruf Abdullah (Rion)
 
Structured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and Design
Motaz Saad
 
Bundled Attributes by R.Chinthamani.pptx
Bundled Attributes by R.Chinthamani.pptx
SindhuVelmukull
 

Similar to Windows batch scripting (20)

Batch file-programming
Batch file-programming
jamilur
 
Batch file programming
Batch file programming
alan moreno
 
Batch programming and Viruses
Batch programming and Viruses
Akshay Saini
 
Batch programming
Batch programming
Harry Kodua
 
Batch programming
Batch programming
Harry Kodua
 
Batch File Programming
Batch File Programming
Frz Khan
 
Batch file programming
Batch file programming
swapnil kapate
 
Batch FIles
Batch FIles
Fredrick Hall
 
Tool Development 08 - Windows Command Prompt
Tool Development 08 - Windows Command Prompt
Nick Pruehs
 
Class 2
Class 2
dduncan3
 
Chapter 1: Introduction to Command Line
Chapter 1: Introduction to Command Line
azzamhadeel89
 
Chapter 1: Introduction to Command Line
Chapter 1: Introduction to Command Line
azzamhadeel89
 
Licão 02 shell basics bash intro
Licão 02 shell basics bash intro
Acácio Oliveira
 
Command line essentials
Command line essentials
Bart Van Loon
 
Command Line Interpreter
Command Line Interpreter
DrAmarNathDhebla
 
SumanKAdinarayana_CommandPromptBasics_TipsNTricksPage1_10Apr2022.pdf
SumanKAdinarayana_CommandPromptBasics_TipsNTricksPage1_10Apr2022.pdf
Suman Komarla Adinarayana
 
Complete Guide for Linux shell programming
Complete Guide for Linux shell programming
sudhir singh yadav
 
Introduction to shell
Introduction to shell
Arash Haghighat
 
Introduction 2 linux
Introduction 2 linux
Papu Kumar
 
PowerShell Core Skills (TechMentor Fall 2011)
PowerShell Core Skills (TechMentor Fall 2011)
Concentrated Technology
 
Batch file-programming
Batch file-programming
jamilur
 
Batch file programming
Batch file programming
alan moreno
 
Batch programming and Viruses
Batch programming and Viruses
Akshay Saini
 
Batch programming
Batch programming
Harry Kodua
 
Batch programming
Batch programming
Harry Kodua
 
Batch File Programming
Batch File Programming
Frz Khan
 
Batch file programming
Batch file programming
swapnil kapate
 
Tool Development 08 - Windows Command Prompt
Tool Development 08 - Windows Command Prompt
Nick Pruehs
 
Chapter 1: Introduction to Command Line
Chapter 1: Introduction to Command Line
azzamhadeel89
 
Chapter 1: Introduction to Command Line
Chapter 1: Introduction to Command Line
azzamhadeel89
 
Licão 02 shell basics bash intro
Licão 02 shell basics bash intro
Acácio Oliveira
 
Command line essentials
Command line essentials
Bart Van Loon
 
SumanKAdinarayana_CommandPromptBasics_TipsNTricksPage1_10Apr2022.pdf
SumanKAdinarayana_CommandPromptBasics_TipsNTricksPage1_10Apr2022.pdf
Suman Komarla Adinarayana
 
Complete Guide for Linux shell programming
Complete Guide for Linux shell programming
sudhir singh yadav
 
Introduction 2 linux
Introduction 2 linux
Papu Kumar
 
PowerShell Core Skills (TechMentor Fall 2011)
PowerShell Core Skills (TechMentor Fall 2011)
Concentrated Technology
 
Ad

More from ArghodeepPaul (12)

Microprocessor questions converted
Microprocessor questions converted
ArghodeepPaul
 
Windows script host
Windows script host
ArghodeepPaul
 
Common problems solving using c
Common problems solving using c
ArghodeepPaul
 
C operators
C operators
ArghodeepPaul
 
C taking user input
C taking user input
ArghodeepPaul
 
C storage classes
C storage classes
ArghodeepPaul
 
C datatypes
C datatypes
ArghodeepPaul
 
C variables and constants
C variables and constants
ArghodeepPaul
 
C program structure
C program structure
ArghodeepPaul
 
Computer programming tools and building process
Computer programming tools and building process
ArghodeepPaul
 
Algorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notes
ArghodeepPaul
 
notes on Programming fundamentals
notes on Programming fundamentals
ArghodeepPaul
 
Microprocessor questions converted
Microprocessor questions converted
ArghodeepPaul
 
Common problems solving using c
Common problems solving using c
ArghodeepPaul
 
C variables and constants
C variables and constants
ArghodeepPaul
 
Computer programming tools and building process
Computer programming tools and building process
ArghodeepPaul
 
Algorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notes
ArghodeepPaul
 
notes on Programming fundamentals
notes on Programming fundamentals
ArghodeepPaul
 
Ad

Recently uploaded (20)

Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
 
ACEP Magazine Fifth Edition on 5june2025
ACEP Magazine Fifth Edition on 5june2025
Rahul
 
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
SharinAbGhani1
 
Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401
Unknown
 
A Comprehensive Investigation into the Accuracy of Soft Computing Tools for D...
A Comprehensive Investigation into the Accuracy of Soft Computing Tools for D...
Journal of Soft Computing in Civil Engineering
 
Fundamentals of Digital Design_Class_12th April.pptx
Fundamentals of Digital Design_Class_12th April.pptx
drdebarshi1993
 
4th International Conference on Computer Science and Information Technology (...
4th International Conference on Computer Science and Information Technology (...
ijait
 
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Takumi Amitani
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
djiceramil
 
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
João Esperancinha
 
grade 9 science q1 quiz.pptx science quiz
grade 9 science q1 quiz.pptx science quiz
norfapangolima
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
CenterEnamel
 
Pavement and its types, Application of rigid and Flexible Pavements
Pavement and its types, Application of rigid and Flexible Pavements
Sakthivel M
 
First Come First Serve Scheduling in real time operating system.pptx
First Come First Serve Scheduling in real time operating system.pptx
KavitaBagewadi2
 
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
ravicivil
 
How Binning Affects LED Performance & Consistency.pdf
How Binning Affects LED Performance & Consistency.pdf
Mina Anis
 
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
 
ACEP Magazine Fifth Edition on 5june2025
ACEP Magazine Fifth Edition on 5june2025
Rahul
 
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
02 - Ethics & Professionalism - BEM, IEM, MySET.PPT
SharinAbGhani1
 
Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401
Unknown
 
Fundamentals of Digital Design_Class_12th April.pptx
Fundamentals of Digital Design_Class_12th April.pptx
drdebarshi1993
 
4th International Conference on Computer Science and Information Technology (...
4th International Conference on Computer Science and Information Technology (...
ijait
 
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Takumi Amitani
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
362 Alec Data Center Solutions-Slysium Data Center-AUH-Glands & Lugs, Simplex...
djiceramil
 
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
João Esperancinha
 
grade 9 science q1 quiz.pptx science quiz
grade 9 science q1 quiz.pptx science quiz
norfapangolima
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
chemistry investigatory project for class 12
chemistry investigatory project for class 12
Susis10
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
CenterEnamel
 
Pavement and its types, Application of rigid and Flexible Pavements
Pavement and its types, Application of rigid and Flexible Pavements
Sakthivel M
 
First Come First Serve Scheduling in real time operating system.pptx
First Come First Serve Scheduling in real time operating system.pptx
KavitaBagewadi2
 
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
COMPOSITE COLUMN IN STEEL CONCRETE COMPOSITES.ppt
ravicivil
 
How Binning Affects LED Performance & Consistency.pdf
How Binning Affects LED Performance & Consistency.pdf
Mina Anis
 

Windows batch scripting

  • 1. Windows Batch Scripting 2011 - The Diary of Nostalgia Instructor: Arghodeep Paul Firmware Engineer at BitBible Technologies Pvt. Ltd. Content Author: Arghodeep Paul License: OpenSource Date: 10 July 2021
  • 2. Introduction Command: A command is nothing but a word/keyword that instructs the system to do a specific task. Commands are of two types internal and external. Internal Command: An internal Command is the built in Command which is not depended on any other thing. These come with the operating system from the very beginning. Whenever you install an Operating System then the built in commands also get installed. Internal commands might be embedded into a file like Command.com(Windows) or installed individually(Linux). E.g. cls, color, help, dir, cd, date, time External Command: These are external programs downloaded from the internet and after locating the correct path they can only be run. E.g. mp3play, python, node, npm, bcrypt Commands: date /t time /t
  • 3. Command Prompt: This is a black screen Application that provides CLI(Command Line Interface). One needs to enter the commands to this window and hit enter. Then the command will be sent to the System’s Shell. Shell is the actual command interpreter. You could open multiple Command Prompt windows and each will have distinct Process IDs. Their job is to only taking the Command from the User. Command Host: A Command is either the built-in one or external program. They need to communicate with the Command Host/Command Processor. Which is nothing but the Shell and more precisely Command Shell. Be it command shell or power shell, they all belong to the Operating System’s Shell compartment.
  • 4. Windows Batch File: Batch refers to the batch execution of commands. If you want to execute 100 commands in a sequence then batch file is the solution. Instead of manually entering commands one by one you create a list of those commands in a TextEditor and save the file with .bat extension.
  • 5. Generate Executable from Batch File: A Batch File is editable anytime. That make the Script vulnerable to unwanted change of source code. In order to make a batch file non editable one has to convert the file to exe. This process is also known as .bat to .exe. Using Third Party Software: Developer: Fatih Kodak(Germany)