Home 00 Dataguide 01 Github 02 Colabs 03 Shell Basics
04 Apis 05 Webscraping 06 Nbdev 07 Javascript Packag... 08 Cloud Functions 09 Browser Extension

Don't Look! I'm changing!

URL Copied

Musical loops

BinderBinderBinderOpen Source Love svg3

NPM LicenseActiveGitHub last commit

GitHub starsGitHub watchersGitHub forksGitHub followers

TweetTwitter Follow

The Command Prompt is a command line interpreter application available in most Windows operating systems. It's used to execute entered commands. Most of those commands automate tasks via scripts and batch files - Lifewire

Bash is a Unix shell. A bash file is a batch file, but not the other way around. A batch file is a text file containing a series of commands. - tkalve

Shell scripts

Scripting allows you to use programming functions – such as β€˜for’ loops, if/then/else statements, and so forth – directly within your operating system’s interface...

It allow us to program commands in chains and have the system execute them as a scripted event, just like batch files.

They allow for command substitution: invoke a command, like date, and use it’s output as part of a file-naming scheme.

Types of β€œbatch” files in windows

- `INI` (*.ini) – Initialization file. These set the default variables for the system and programs.
- `CFG` (*.cfg) – These are the configuration files.
- `SYS` (*.sys) – System files, can sometimes be edited, mostly compiled machine code in new versions.
- `COM` (*.com) – Command files. These are the executable files for all the DOS commands. In early versions there was a separate file for each command. Now, most are inside COMMAND.COM.
- `CDM` (*.cmd) – These were the batch files used in NT operating systems.

And some basic commands of batch file

- `echo` – Prints out the input string. It can be ON or OFF, for ECHO to turn the echoing feature on or off. If ECHO is ON, the command prompt will display the command it is executing.
- `cls` – Clears the command prompt screen.
- `title` Changes the title text displayed on top of prompt window.
- `EXIT` – To exit the Command Prompt.
- `pause` – Used to stop the execution of Windows batch file.
- `::` – Add a comment in the batch file.
- `COPY` – Copy a file or files
- `CAT` - Displays inner content of a file