
Explore what batch script is, why it matters in Windows, and learn to write and execute command sequences, covering batch script commands, special characters, decision making, and condition array functions.
Learn to create batch files using a code editor, with notepad plus plus as the recommended tool, while you may also use notepad, visual studio code, or sublime text.
Learn how batch files execute multiple commands in command line and create your first batch file using notepad or notepad plus plus, with echo, pause, and bat or cmd extensions.
Run a batch script by double-clicking it on the desktop to print Hello, or execute it from the command prompt by navigating to the desktop and running the file.
Learn to use echo to print text in batch scripts, with or without quotes; see quotes printed when included, then save as test.bat and double-click to run.
Explore command echoing in batch scripts. Learn to use echo on and echo off, and observe default behavior and command outputs in the console.
Turn off command echoing with @echo off so only output prints. The example prints hello world and waits for any key, noting echo can display a variable value.
Learn how to use the ver batch command to display the operating system version. Write a sample script, save it, and run it to view the version number.
Learn how the batch command cd navigates directories and displays the current directory. Using cd with no parameter shows the batch file's current working directory, such as the desktop.
Learn how to use batch commands cd and cd .. to move up one directory and display the current directory, illustrated with a batch file starting on the desktop.
Learn to use direct paths with the cd command in batch scripts to move into a target folder, display the current directory, and verify changes from desktop to test.
Use a choice batch command to prompt users to select one item from single-character options and return index, with /c to specify choices, /m for the prompt, and Y/N defaults.
Explore the dir batch command to list disk files and directories, view volume info, and see file names, dates, sizes, cumulative size, and free space, with syntax and attributes explained.
List all files with a txt extension using a wildcard in a batch script, then execute to confirm a single dot txt file appears on the desktop.
Use the dir command with the /A attribute to include hidden and system files, and combine with H to display only hidden files in a script execution.
Explore the batch date command, which displays the current system date and prompts for a new date, including practical script examples and execution results.
Use the environment variable with percent signs and the echo command to display the current date in a batch script, instead of the date batch command.
Explore how the time batch command displays or sets the current system time, prompts for a new time, and how to use %time% with echo to show the value.
Explore how to use the batch command CLS to clear the command prompt window, including an example that displays the current time and then clears it from the console.
Use the tasklist command to display running processes on local or remote computers, showing name, PID, session name, and memory usage.
Learn how the shutdown batch command works, how to modify a script from a task list to shutdown, save, and run it to automatically shut down the computer.
Practice using the pause command in batch scripts to hold console until the user presses a key, displaying messages with echo like hello there and press any key to continue.
Explore the batch command and how rem marks comments in a batch script; anything after rem is not executed, as shown by a script printing only hello there.
Use the batch title command to set the output console title, as shown by modifying the script, saving, and running it to display testing as the new title.
Use the comp batch command to compare two file sizes, identify when they differ or match, and follow step-by-step desktop examples to adjust sizes.
Master the sort batch command to arrange file contents alphabetically using a simple example, showing how to specify a file path and run the sort operation.
Discover how the help command reveals all batch file commands and their functions in the command prompt, then learn to fetch syntax and attributes for specific commands like move.
Master the copy batch command to copy files from a source to a destination, using explicit source and destination paths; if omitted, it uses the current working directory.
Learn to copy files with batch copy commands, define source and destination, and quote paths with spaces so eight.txt moves to tsb and Testdb as copies succeed.
Copy dot txt files from a test folder to a new directory using a wildcard and the .txt extension, copying four files and verifying them in the destination.
Discover how the copy command transfers files from test to tsb folders, explains why directories aren’t copied, and outlines remedies in batch commands, part 4.
Learn how to use the xcopy batch command to copy files and directory trees, including or excluding empty directories with /s and /e attributes.
Learn how to use the del batch command to delete files in batch scripts, including specifying paths and the permanent deletion of a file with a desktop example.
Learn to use the del command with the /p attribute to delete a file in a batch script, showing a confirmation prompt before deleting c.txt.
Use the Del command with a wildcard to delete only .tf files in the test folder, update and run the script, then verify that the targeted files are removed.
Copy the path, update the batch script to target the folder level, save, and run it to delete all files in the test folder. Confirm deletion when prompted.
Master batch script techniques to delete all files in a test folder with spaces in its name using the del command, wrapping the path in double quotes, saving and executing.
Learn how to use the move batch command to relocate files between directories, including renaming and moving directories, with a practical example moving eight dot txt into the test folder.
Use the move command to rename a directory by specifying the source and destination paths, update the script, run it, and verify the folder renames correctly.
Learn how to move a directory with a batch script using the move command, by specifying the source and destination paths and moving test BCD into the test folder.
Learn how the attrib command displays and manipulates file attributes, including showing all attributes, setting hidden and read-only with +h and +R, and removing them.
Open and update test.txt, then set it to read-only with the attrib command using plus R, and verify archive and read-only attributes.
Apply the plus h attribute with the attrib command to hide Test.txt, update and save it, run the script, and verify that Test.txt is hidden.
Learn to use attrib to remove the hidden and read-only attributes from test.txt via minus h and minus r, then modify it in batch scripts.
Learn how the batch find command searches for a string in files and prints matching lines, with a practical example using test.txt to locate Hello.
Display a file’s content using the type batch command by writing type, providing the file path, saving, and executing the script to show output on the console.
Explore special characters in batch scripts, focusing on the at symbol (@) to suppress command echo and show only output, using echo off to keep the console clean.
Explore the double colon as a label and comment in batch scripts, see 'Hello there' print to console, and learn how a trailing caret makes the next line a comment.
Learn how the redirect character sends command output to a file, demonstrated by creating file.txt on the desktop with echo hello there and verifying its contents.
Learn how to redirect echo output to File.txt with the > operator in batch scripts, and how to append data using the append special character.
Use the append character (>>) in batch scripts to add command output to a file without overwriting existing data. Observe how file.txt accumulates new output while preserving the old data.
Discover how the carat (^) acts as line continuation and escapes reserved characters in batch files, with an example showing how to extend a line and produce the final output.
Master escaping the redirect character in batch scripts, control echo redirection to a file or the console, and auto-create file dot txt as needed.
Use the pipe character to chain commands by redirecting one command's output into another's input, as shown with tasklist and find to search for Notepad plus plus.
Learn how ampersand and double ampersand handle multiple commands in batch scripting, where single ampersand runs commands sequentially and double ampersand executes the second command only when the first succeeds.
Learn about variables and command line arguments in batch scripts using percent variables and echo. See how two arguments print and a third is ignored.
Learn how to define and print variables in batch scripting using the set command, including declaring names, assigning values, and displaying them with echo and percent syntax.
Explore how batch script variables behave with the set command: variable names are not case sensitive, but their content is, demonstrated by printing hello there on the console.
Learn how the set command handles batch script variables and why spaces around the equals sign matter, causing outputs like echo is off or hello there.
Learn how to define a numeric variable in batch scripts using the set command with the /a switch, print 20 to the console, and handle 32-bit integer range.
Learn how to use the set /a command to perform numeric operations on variables in batch scripts, including dividing 20 by 3 and rounding the result down to 6.
Learn how the set command parses numeric values and strings in batch scripts when the slash switch is absent, demonstrating variable handling and output.
Demonstrate prompting for user input in batch scripts using set /p, storing values in variables like STR and STR1, and echoing the entered username and password.
Explore the difference between local and global variables in batch scripts, learn variable scope, and use set local and end local to control variable lifetime.
Define and distinguish global and local variables in batch scripts by using set, set local, and end local, then print both values to demonstrate scope.
Explore how global variables persist across the batch script and how local variables are destroyed at end local, with examples showing printing values inside and outside scopes.
Create, modify, access, and delete environment variables in batch scripts using the set command and percent signs, and print values with echo to share across batch files.
Explore enabled delayed expansion in batch scripting, showing how variable expansion happens at execution time, how to enable it with the set local command, and why it’s needed.
Define and update a batch script variable, then enable delayed expansion with setlocal and use exclamation marks for runtime substitution to print 1 and 2.
Use the echo command to debug bash scripts by printing variable values and pinpointing the line where an error occurs. This helps locate issues in large scripts.
Master batch scripting debugging techniques by learning how syntax errors arise from undeclared variables, and how the pause command aids debugging by keeping the window open.
Log errors to a file by redirecting output in a batch script, then run the script to see error dot txt created with the logged message.
Learn to debug batch scripts by using the error level environment variable to distinguish success (zero) from errors (non-zero). The lesson shows checking error level, printing messages, and pausing.
Explore decision making in batch scripting by evaluating if conditions and printing outcomes with example variables A and B.
Learn to use if conditions with command line arguments in batch scripting by comparing two variables to specific values and echoing confirmation messages.
Practice batch script decision making with if conditions, showing that variables are not case sensitive while content can be, by comparing strings with different casing.
Master if-else decision making in batch scripts by evaluating conditions and handling true and false branches. Learn to apply case sensitive comparisons with variables like str and command line arguments.
Learn how the batch script if defined condition checks a variable's existence, using practical examples to print whether a variable is present or not.
Explore the batch script's if exist statement to check a file's existence, modify the echo output, and test both file is present and file is not present scenarios.
Learn how to implement nested if conditions in batch scripting to require multiple criteria before execution, demonstrated with a = hello and b = buy printing the result when true.
Learn to implement nested if else in batch scripts by updating a script and evaluating a and b, printing value of a is correct or a and b are incorrect.
Learn how to create and print strings in batch scripting using the set command to assign a string to a variable and echo it to the console.
Learn how to detect an empty string in batch scripting by initializing a variable with no value, wrapping it in square brackets, and comparing it to an empty string.
Master string interpolation in batch scripting by combining variables, numbers, and characters to produce mixed strings like hello and world 50 on the console.
Demonstrate string concatenation in batch script using the set operator to join two strings, then print Hello world to the console.
Master the left string in batch scripting to extract the first four characters from a string, with hands-on examples using hello world.
Learn how to use mid string in batch scripting to extract a substring from the middle of a string, starting at a position and length, with console output.
Learn how to use writestring to extract characters from the end of a string, using the minus symbol to specify five characters, as shown with 'hello world' returning 'world'.
Learn to remove a substring in batch script using string substitution, replacing with null, and observe how the string prints as the remaining text.
Learn to remove characters from both ends of a string in batch scripting, using tilde for the start and minus for the end, and specify how many characters to remove.
Learn to remove all spaces from a string or a file using batch script string substitution by replacing spaces with nothing; save, run the script, and see the spaces disappear.
Explore string substitution in batch script by replacing a substring with another, such as replacing hello with bye, and observe the updated output printed to the console.
Describe labels that begin with a colon and have eight-character max; anything beyond the first eight characters is ignored, enabling goto to jump to code blocks or serve as comments.
Explore label and goto in batch scripting by branching on variable A's value (ten or twelve), printing the corresponding message and exiting with code zero after a pause.
Master batch script arithmetic by using variables and operators such as addition, subtraction, multiplication, division, and modulus to compute and print results in a step-by-step demonstration.
Master relational operators in batch scripting: equal to, not equal to, less than, less than or equal to, greater than, greater than or equal to, with A and B examples.
Learn to emulate logical and and or in batch scripting with nested if conditions, since batch has no direct operators; A=ten and B=five prints logical and.
Explore how to replicate the logical or operator in batch script using multiple if conditions, defining AB when A equals ten and echoing whether AB is defined or not.
Explore the batch script not operator and how it negates conditions in logical operators, flipping true to false and false to true, with examples showing echo output.
learn batch script assignment operators, including addition, subtraction, multiplication, division, and modulus, with examples like a plus equal to two and a minus equal to two.
Explore bitwise operators in batch scripts, including and, or, and XOR, with an example that sets a=48, uses and with 23, and prints 16.
A batch file is a script file in DOS, OS/2 and Microsoft Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file (.txt file). A batch file may contain any command the interpreter accepts interactively and use constructs that enable conditional branching and looping within the batch file, such as IF, FOR, and GOTO labels. The term "batch" is from batch processing, meaning "non-interactive execution", though a batch file may not process a batch of multiple data.
This course provides students with the fundamental knowledge and skills to use Windows Batch Script for administering and automating administration of Windows systems. This course provides students the skills to identify and build the commands they require to perform specific tasks. In addition, students learn how to build scripts to accomplish advanced tasks such as automating repetitive tasks
This course is meant for the beginner who wants to know about Batch Script and some basic scripting with Batch.
Please don't wait that others should encourage you to learn this Skill.
Try to identify the need and demand of Today's time, and Grab this opportunity to Learn this new Skill to match pace with Trending Time and Technologies.
I am sure, As soon as you complete this course, You will be very efficient in automation using Batch Scripting.
I'm a professional instructor who has helped thousands of students learn to use Batch Scripting. Come and enjoy the class as you learn this powerful tool.
REMEMBER… I'm so confident that you'll love this course that we're offering a FULL money-back guarantee for 30 days! So it's a complete no-brainer, sign up today with ZERO risk and EVERYTHING to gain.
So what are you waiting for? Click the buy now button and join the world's highest-rated development course.