How To Make A Batch Filebatchfiles



Hello friends… in this article we Teach you ” How to Create Backup Batch File in windows 10 “. you easily Create Backup Batch File with Notepad. in this article we Create Backup Batch File with Notepad (with .bat extension). you easily backup your data with backup batch file.

In this Tutorial we create backup batch file using Notepad and CMD.

Create Backup Batch File

Step 1. Open Notepad

Batch Script - Creating Files - The creation of a new file is done with the help of the redirection filter. This filter can be used to redirect any output to a file. Following is a simple ex. It’s fundamentally simple to create a batch file. The only thing you need to change is what you type into Notepad. To run several commands, you type each one on its own line and the batch file will run each one in order. For example, let’s say we want to write a batch file that runs several network diagnostic commands. How to Create a Batch File in Windows Step 1: Create a BAT File Let's say that you frequently have network issues; you constantly find yourself on the command Step 2: Learn the Basics of Batch Scripting Batch files use the same language as the command prompt. All you're doing is Step 3: Write. Double quotes in batch file. Note: If Batch Compiler halts at the splash screen, launch the EXE file from the data sub-directory (instead of the main directory). When converting batch files, you can use the built-in conversion option of “Batch Compiler” or launch the b2x.exe file, located within the data sub-directory, to launch the converter. While some may argue that.

Step 2. Type this

xcopy <Pickup file system name or IP><Folder Name>*.* Destination drive name>Folder Name /DSHYC

For Example Like this

Using System Name

Cool Batch Files

Ex. – xcopy guruji gyanNew Folder*.* D:New Folder /DSHYC

Using System IP Address

Ex. – xcopy 192.168.1.11New Folder*.* D:New Folder /DSHYC

Also Read :- How to Clear Cache Data in Windows 10

Step 3. Now make 2nd folder backup go to next line and type a command Using another folder Location.

Step 4. Go to File Option and Click On Save Button

Step 5. give a File name and also give batch file action for example. (Save this file with .bat extension)

Ex –Gurujiggyan.bat (just like give a file name)

File

Step 6. Click on Save Button after Save this File. Now you see the file Icon Look Like this

Step 7. Run this File when You Want Backup.

Also Read :- How to Call Your Friends with Different Voice and Number

How to Change in Backup File

Step 1. You easily Edit this file with, Right Click On Backup File and Click On Edit Button. File open in Notepad now you can edit normilly.

Step 2. Change the File Details

Step 3.Save the File Normally

Step 4.Run backup file and get a charged according to you.

Now you Successfully Create Backup Batch File in windows 10. if this post helpful for you and you like this post. Please share with your friends and read other articles like this. Thank You for Reading.

Any programming or scripting languages require variable to store the data and access them whenever we need the value. Using of variables becomes inevitable in mathematical computations. The variable contains some data whose value may change during the course of program computation.If you are familiar with traditional languages like C, C++ or java, you may assume that the variable must be created generally using the data type that defines the value it holds. But in batch files we don’t have any such data type like int, float blah blah. The command interpreter is intelligent enough to understand certain values given to variables.

Let us first understand how to create variables in batch file programming and go deeper into this concept.

Batch File Variables

So, the above syntax is used to evaluate arithmetic expressions and also create variables in batch programs. Basically we create variables to specify that the computer needs to remember certain values that are given a name and may be changed at any time until the end of the program.

Does this syntax seems weird?

Yes, I felt the same at first. If you are a novice programmer, you will also feel the same. Let us break it down and make it simple enough to understand. For few minutes, forget the syntax and just remember that we use SET command to evaluate arithmetic expressions and create variables.

Batch File SET Variable

Just we will start with the first word in the syntax that is SET. This word is enough for us to create a variable. It is a built in command in MS-DOS. Now the question is how to create a variable using this command. Have a glance at the example.

Creating Variables

2
4
6
seta=1
set res=%a%+%b%
Pause

How To Write A Batch File

So, you will be away to think that the value of the variable ‘res’ is 3. But that is not the case here. The interpreter assumes res as a string that is the concatenation of variables a and b. To specify that the computation is arithmetic but not the string concatenation, we use the flag ‘/a’. Using it, let us rewrite the program.