Bat File - Batch File Key, Batch Generate, Edit, Use Detail + Mozilla Silent Installation

At the beginning of computer learning, all users have heard of DOS Because DOS occupies a significant position on the computer There are so many things on the computer that DOS is not possible without Therefore, not only to be proficient on computer, but also to use dosas for troublesome tasks from computer to important tasks DOS with the past, we ms DOS , ms use of DOS , including a number of've posted Full use of DOS is Bat File So it is absolutely necessary to know about Bat File We are in this tutorial We will discuss how to create, edit, edit and use Batch File .
Bat file key
If you have any of the above links, you can get an idea about Bat File Basically, the need for Bat File to remove the DOS limitation Important tasks are done through different commands in DOS DOS restriction is a command that can be applied once and there is no limit on it in Bat File DOS commands are not available for later use, but Bat File can be used anywhere Apart from this, there are many other benefits Bat File , which is not possible with DOS The Extension of the bat . HoweverCan also be used as .cmd (Command) . 
Bat File created and edited
To create Bat File , you must have an idea about your DOS command Open the notepad and write the commands there And with a name of the Extension as a .bat  or .cmdIs not As I opened down Notepad I wrote some commands there Each line has a command .

 
After writing a name Save will the Extension as a .batOr .cmdI will gave the extensiondown bat .


When you want to edit, right-click on that file and click 
Edit open the file through Notepad and you can edit it as you like After editing the Save (Press Ctrl + + S is) should be .

Choice
Process to create bat file:
If the new user is in the above discussion Bat FileI can not have complete ideas about me If you are like that, please read the discussion below Hopefully the whole idea will come Here we will learn to install Mozilla Firefox Silent through Bat file Although the new user is Bat FileThere will be no difficulty in creating. 
Place your Mozilla Fire Fox file in one place Name Mozilla Fire Fox Setup.exe Now Notepad Open Setup.exe writes file the Mozilla bat save it as the same place where your Mozilla Fire Fox said .
setup.exe
I figure below Setup.exe , and the Mozilla Put two files in the same folder Keep you in the places you like .

Now the Mozilla Double click on the bat DOS window will appear like the following in connection with the Mozilla in Fire in Fox The Setup.exe text appears in the DOS window . 

DOS window on the top step Setup.exe with the file s showing the full address I do not look beautiful I do not want to see any command message want to hide that message For this, edit my Bat file and add the following line to Setup.exe line .
@echo off

If you add the line at the top of 
the Mozilla The file will look like the following .

@echo off 
writing all kinds of DOS commands Hide kept As a result, no command can be seen in the DOS window Add the above line and save the bat file and double-click it Looks like the DOS window below, which does not have any command The @echo off   line is always top of the line .

There is no message in top step dash window The Fire Fox install Though I do not know anyone else So I will add a message through which anyone will understand that Fire Fox is being installed and it can not be closed The message is as follows .
Please wait ...
Installing Mozilla Firefox 12.0

Dekharajanya message 
Bat file Edit the following lines, two Setup.exe above the line @echo off   the line, add below .

ECHO Please wait ...
ECHO Installing Mozilla Firefox 12.0

If you add the two lines at the top of 
the Mozilla The file will look like the following .

After ECHO , a space is required to write a message The line will be written as ECHO at the beginning of every line Add two lines at the top of Bat Save the file and double-click the View .

In the top dos window Please Wait ... The text is not very good looking at the beginning If the writing started after one line, it would have been a little more beautiful At the Bat file Edit the @echo off the line, add the following line below .

ECHO

After writing ECHO , a dot (.) DOS can understand that it is not a command but the user wants to go down one line .
ECHO After adding the Mozilla The file will look like the following .


The 
Bat Save the file and double-click the View Please wait ... The text starts from below one line .

I'm Bat file taitelabara will add his own choice For this, add the line below @echo off   line .

title Installing Firefox

The mozilla 
The file will look like the following .

The 
Bat Save the file and double-click the View After the title titles as Das titles, I will show the message .

Add the following lines to add the message of my blog above the Setup.exe line .

ECHO
ECHO
ECHO    ==================================
ECHO    ==================================
as a result
The mozilla The file will look like the following .


Bat
 Save the file and double-click the View My message will show up Setup.exe gave the message above the line because that's the message that will appear as long as Setup.exe does not end .
At the top steps I have one of the useful commands that DOS Execute will do That is Setup.exe The rest used my bat file to sort or use it myself If you notice a little more, see that my Mozilla is being installed due to the Setup.exe command but silent is not installed I'm looking for Mozilla bat file with double-clicking the Mozilla Silent Install or Automatic Install will Mozilla at the end of Setup.exe for thisSilent Install Switch has to be added Mozilla Silent the Install Switch, the ms This switch will be added after a Setup.exe with space For this, edit the Bat file and add the -ms switch after Setup.exe like the image below .

Bat Save the file and double-click to see more and to install Mozilla Next, Accept , etc. is .
10
When Mozilla is installed after its installation, its Profile Settings It's annoying I'm also going to add my previously created profile settings with Silent Install so that they do not have to make new profile settings again Mozilla profile settings C: \ Documents and Settings \ KAMRULCOX \ Application Data addresses . Here KAMRULCOX is the name of the user .

See how to create profile settings here If you wish, you can download the profile I created Now create a folder called Pofile Mozilla bat and the Mozilla exe where there has Then , copy the Mozilla folder you created from C: \ Documents and Settings \ KAMRULCOX \ Application Data and copy it to the folder named Pofile See the picture below Mozilla inside my Pofile folderKeep the folder . 

To copy the Mozilla folder in the Pofile folder to C: \ Documents and Settings \ KAMRULCOX \ Application Data , add the following line after Setup.exe 

xcopy Pofile "% userprofile% \ Application Data" / e / y

wrote "% userprofile%" instead of C: \ Documents and Settings \ KAMRULCOX . The advantage is that it will work with all users on all PCs because there is no such thing as the name of all users is KAMRULCOX or all Windows C Drive . There will be no question when copying the silent switch / e / y to the command and the Empty Folders will be copied.   
The bat file looks like the following.
11. Now DOS will manage two commands at once. One is Setup.exe and the other is xcopy Here is a long running command of Setup.exe I want the xcopy command to start until the end of the Setup.exe command For this, add start / wait text before Setup.exe After start / wait add Setup.exe with space Then my Bat file will look like the following.

xcopy will not start until start / wait , as long as the Setup.exe command ends .
12. My command s last or xcopy before I exit the command will be added. Then my final bat file will look like this below.

@echo off 
title Installing Firefox 
ECHO 
ECHO Please wait ... 
ECHO Installing Mozilla Firefox 12.0 
ECHO. 
ECHO 
ECHO ================================== 
ECHO     http://kamrulcox.blogspot.com
ECHO ==== ============================== 
start / wait setup.exe ms 
xcopy Pofile "%: userprofile%: \ Application Data" / e / y 
exit

As the result of exit xcopy , my DOS window will be closed. Even if there are other commands after exit , it will not work anymore. Now the Mozilla Double click on the bat file. Your Mozilla Silent will be installed and you will not have to do new User Profile Settings again. 
In the above discussion, we learned how to create Bat file so that many commands are used together, which is not possible. That's the DOS restriction. Besides, we can use the Bat file we want to use any way we want and save it for the future. Just need to double click when needed.The Bat file If you notice there Setup.exe and xcopy copy of the beauty of our work to expand into the rest of the commands which can not dase. In this way you can also create any of your favorite bat files . Today it is If there is any question you can do without hesitation.

Comments