This course will provide you with basic knowledge of batch (.bat) scripting.
Free tutorial
10,074 students
1hr 32min of on-demand video
Created by Rahul Sawant
English
Current priceFree
What you’ll learn
- Basics of Batch Scripting
Requirements
- Visual Studio Code
Description
This course is designed to give you basic ideas about Batch Scripting.
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 to make one’s life at the shell more comfortable and more productive. This tutorial discusses the basic functionalities of Batch Script along with relevant examples for easy understanding.
What will you learn?
1. Introduction of batch scripting
2. Batch scripting Prerequisite
3. How to use the Echo command to print output
4. How to use @ Symbol in Scripting
5. How to use Variables in Scripting
6. Write comment section block
7. Create Environment Variables and use them in Scripting
8. How to create string and Concatenate multiple strings
9. How to use Mathematical Expression
10. How to use Input Command in Batch Scripting
11. How to Write Command Arguments
12. How to create Basic Functions
13. Function explanation using GOTO and Exit
14. How to create Function Argument
15. Create Local Scope in Script
16. How to Create IF Statement
17. How to write Else Statement
18. How to Create For loop
19. How to write Error level
20. And finally how to write log files for your Scripts
Thank You,
Rahul Sawant
Who this course is for:
- People who want to learn basics about batch scripting
Show less
Course content
3 sections • 21 lectures • 1h 31m total lengthCollapse all sections
Introduction1 lecture • 3min
- Introduction03:02
Prerequisite1 lecture • 1min
- Batch Scripting – Prerequisite01:27
Basic Commands Execution19 lectures • 1hr 27min
- Batch Scripting – Echo02:40
- Batch Scripting – @ Symbol02:58
- Batch Scripting – Variables06:36
- Batch Scripting – Comment01:57
- Batch Scripting – Environment Variables05:08
- Batch Scripting – String Concatenation04:52
- Batch Scripting – Mathematical Expression03:57
- Batch Scripting – Input06:00
- Batch Scripting – Command Argument02:55
- Batch Scripting – Basic Function02:56
- Batch Scripting – Function with Goto & Exit06:10
- Batch Scripting – Function Argument06:51
- Batch Scripting – Local Scope06:33
- Batch Scripting – IF Statement06:14
- Batch Scripting – Else Statement03:29
- Batch Scripting – For Loop03:54
- Batch Scripting – For Loop Number03:08
- Batch Scripting – Error Level07:19
- Batch Script – Log File03:33