Skip to main content

How To Create A Simple Batch File For Windows

 

 

How To Create A Simple Batch File For Windows

Hackers can create very dangerous batch files which can destroy your computer but here we are going to teach you on how to create a simple windows batch file. Batch files are created using Microsoft Notepad
How to create a simple batch file for windows
Step 1: Right-click on desktop and choose Text Document. Now you can see a plain text file when you open it.
Step 2: Google the commands which you need to create a simple batch file
Note: Below you find a simple batch file that displays some text.
Step 3: Type “@echo off” so that the code is not displayed in the final form.
Step 4: Next line type “echo” then press space and add the information you want to  display (example: echo my first batch program)
Step 5: Press enter to go next line and write “pause” so the windows stops.
Step 6: Now Save your file
Step 7: Give a name to your file and save it in .BAT extension.
Now your done! You have created a simple windows batch file. If you run the batch file you can see your batch file showing you the content which you have written after “echo“. You can also add title to your batch file by adding the code “title” (example: title Latest hacking news)
Capture
List of Batch commands  
  • APPEND  Set or display search path for files.
  • ASSIGN  The command redirects requests for disk operations on one drive to a different drive. It can also display drive assignments or reset all drive letters to their original assignments.
  • ATTRIB Change or view attributes of one or more files.
  • BACKUP and RESTORE Original commands to backup and restore files. Replaced later on by CPBACKUP or MSBACKUP
  • CALL  Invokes a Batch program from another Batch program
  • CHCP Displays or changes the active code page used to display character glyphs in a console window.
  • CHKDSK Checks a specific storage volume.
  • CHOICE Prompts user to choose from several options.
  • CLS Clears the terminal screen.
  • COPY Copies files to a specific location.
  • DATE Displays system date.
  • DEL and ERASE Delete one or more files.
  • DIR Shows contents of a directory.
  • ECHO Displays text on screen.
  • EXIT Closes the program.
  • FC and COMP Compares two files and shows differences.
  • FOR A loop syntax based on a set of conditions.
  • MD or MKDIR Creates a new directory.
  • MOVE Moves files to a specific location.
  • PATH Displays or sets a search path for executable files.
  • PAUSE Suspends all activity until user input.
  • RD and RMDIR Removes a directory.
  • REM Adds comment without any action.
  • REN Renames a file.
  • SORT Filters input data and sends it to output data stream.
  • TIME Displays system time.
  • TITLE Modifies the program title (shown in title bar).
  • UNDELETE Restores files deleted with the DEL command
  • XCOPY Copies entire directory tree.

Comments

Popular posts from this blog

The Best Web Hosting Services

Are you looking for the best web  hosting  services for your needs? Whether you need a place to host your small personal blog or a major corporate website, the following list will help you identify the best hosts to use. Finding the best web hosting service isn’t quite as straightforward as searching Google and choosing the one with the lowest price. There are a lot of issues to consider, including the reasons for  why  you need hosting and  how  you intend to use it. Once you have a handle on that, finding the right host becomes much easier. Choose one that’s undersized and you’ll end up with website outages and slow page loads, but choose one that’s oversized and you’ll be throwing money away. Defining Your Web Hosting Needs Before choosing your web host, you’ll need to think about your requirements. Consider the following concerns and decide the importance of each item on a scale of 0 to 10 (with 0 being not at all...

Now You Can Use Reliance Jio 4G Services On 2G And 3G Smartphones

Indians will always be at the top in availing any free internet facility. As, Reliance Jio aims to offer free 4G internet to the 90% of Indians, hence, with one of its services now you can use Jio 4G services on 2G and 3G smartphones. Now You Can Use Reliance Jio 4G Services On 2G And 3G Smartphones Who doesn’t want the free internet? Of course, we all want, Indians will always be at the top in availing any free internet facility. Jio, which is also known as Reliance Jio and officially as Reliance Jio Infocomm Limited has already given its users free unlimited 4G data for 90 days. As the Reliance Jio aims to offer free 4G internet to the 90% of Indians along with the free voice calls and messaging services. So, we all must agree that Indians are always at the peak when it comes about available any internet facility. We all know Jio, which is also known as Reliance Jio Infocomm Limited has previously given its users free unlimited 4G data for 90 days. Not only that but even th...

10 Essential Tips To Keep In Mind While Surfing The Internet

BENGALURU: Internet is an amazing resource which is stapled in many people’s day-to-day lives. It is very much informative but at the same time encircled with many dangers. Listed below are the strategies you can follow to stay safe on the internet as stated by Tech Radar India. Use your discretion on social media Online scams crops up almost everywhere in webpage such as an e-mail, tweet, Facebook post, or many other places. Never click on links that do not look like a real address or pop-ups that claim you have won millions of dollars—all these are scams in which one can easily get trapped. Also don’t fall prey to e-mails which ask you to help someone transfer a large amount of money out of their country delineating their long sad story. Hackers can access data through various innovative ways like sharing links of content that they feel the targeted person is likely to click. Be careful of what you are sharing Limit the content that you share on social media. Facebook...