Skip to main content

How to create a .bat Batch file in windows

Batch files are similar to executable files. Batch files can run a set a set of command prompt commands for you. If you always run a particular set of command prompt commands often, use batch files to run them. You can also make interesting short cuts to various applications.
Procedure to make a batch file:
Open notepad and type the commands which you want to run.
Try typing each command in only one line.
Type the next command in another line.
Save the file. In the save file dialog box, in the file name text box type the filename followed by ”.bat” without quotes. Now save the file.

Now when you double click the file, you will be able to run that list of commands which you have typed in your notepad.

Here is an example:
Open notepad and type appwiz.cpl. Note that the commands are case sensitive. Now save it as batch file and double click it. It will open Add or remove programs. You can change the icon of the batch file to make it look attractive.

Popular posts from this blog

Automatically align the column widths in Windows Xp

Some times when you browse folders in details view, the view may be cluttered and you might want to resize the column widths manually to get the complete details fit in a single screen in the horizontal direction so that you need not use the horizontal scroll bar to view the details which are off screen. Alternatively, Windows Xp provides an automatic way to adjust column width. Just select any row in the list and press they key combination, “ctrl + ‘+’of the numeric key pad”.

How to disable all the flash in SeaMonkey using AdBlock plus ( flashblock not working when JavaScript is disabled)

Flash block is a very good add-on for blocking flash in SeaMonkey, but when you disable JavaScript in the browser, the flashblock add-on does not work. So here is an alternative. In SeaMonkey after installing AdBlock plus, do the following to remove flash completely. Open AdBlock plus (Go to tools > AdBlock plus). Now click the filters menu and select ADD FILTERS. Now in the filter rule type *.swf and click the apply button. Here after you will not be able to view flash in your browser. Blocking flash helps save a lot of bandwidth. If you want to see flash in a particular page then you will have to disable AdBlock plus by going to AdBlock plus > options >and uncheck the Enable AdBlock plus menu.

How to get Ribbon Style Interface in LibreOffice Write and Calc.

The ribbon interface in Microsoft office makes it easy for users to complete tasks easily. You can get a similar interface in LibreOffice by following the steps below: 1. Download the latest version of LibreOffice (at the time of writing this post, the version is 5.4) 2. Open LibreOffice Writer and Go to Tools > Options. 3. Under LibreOffice section, click Advanced. 4. Check the checkbox saying, "Enable Experimental Features". 5. Now go to View > Toolbars > select Notebookbar. 6. After restating, you should get ribbons. 7. You can still access the old layout by clicking on the three slider menu button and selecting MenuBar, to show the old style menu bar as well. If you want to change the tool bar style, you can select View (in the old style Menubar) > Toolbar Layout > Default. You can do the same for LibreOffice Calc as well.