joekruto.blogg.se

Comment in windows batch file
Comment in windows batch file













It contains series of command that is executed by command line interpreter. Conclusionīy following the method discussed in this article, you can easily write a batch script in Windows 10 and hence save yourself from writing complex commands on Command Prompt because now, you can simply run those commands just by running the batch script that you have created.A batch file is an unformatted text file or script file which contains multiple commands to achieve a certain task. Now you can press any key from your keyboard in order to close this window. In this example, you will be able to see the message “My First Batch Script” as highlighted in the following image: Now double click on your batch file in order to run it as highlighted in the image shown above.Īs soon as you will run this batch script, the message that you have written in it while creating it will be displayed in your Command Prompt window. For doing that, first, locate the place where you have saved your batch file as highlighted in the image shown below: You will need to run this batch file now. Once you have typed in the desired name for your batch script, click on the Save button as highlighted in the image shown above. In this example, I have named the batch script file as “ FirstBatchScript.bat”. Now name this newly created batch script according to your own choice followed by the “.bat” extension. Now click on the Save As option from this menu as highlighted in the image shown above.Īs soon as you will click on this option, the Save As dialogue box will appear on your screen as shown in the following image: For doing that, click on the File tab located on the Menu Bar of the Notepad document as highlighted in the following image:Īs soon as you will click on the File tab, a pop-up menu will appear on your screen as shown in the image below:

comment in windows batch file

Once you manage to write your first and most simple batch script, you need to save this file. These commands are also highlighted in the image shown below:

comment in windows batch file

Now type the following commands in your newly opened Notepad document: ECHO OFF The newly opened Notepad document is shown in the following image:

comment in windows batch file

Type notepad in the search section of your taskbar and click on the search results to launch the new notepad document. In order to write a batch script in Windows 10, you will need to perform the following steps: In this article, we will explain to you the method through which you can write a batch script in Windows 10. Well, the magic lies behind the batch scripts. Therefore, they want some sort of magic through which they can simply take advantage of the Command Prompt without even having to write commands on it every time. However, some people do want to use the wonders of Command Prompt but they do not like its dull interface. If you are a regular Windows 10 user, then you must be familiar with the power of the Command Prompt.















Comment in windows batch file