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

How to Increase Internal Memory Space in Any Android phone – Without Rooting your Phone.

Although there is no risk involved in this Process, this gives you opportunity to Move Applications between Your Internal Memory and Memory card (SD Card).But make sure you don’t move the Applications which use Widgets to the SD Card because they Widgets will stop working when you Plug in to your PC and Use the Phone in Mass Storage Mode. (The SD Card will the Disconnected from the Phone). Just use your Common Sense and you are done. You will have to do some Command Prompt stuff now, but don’t worry;it’s very simple and easy. Step 1: Install JDK and then Install Android SDK. (Just Google for them, they are freeware) After Installing run Android SDK Manager. Select Android SDK Platform Tools (Uncheck anything else) and Click Install 1 Package. Step 2: Enable USB Debugging in your Phone in Settings > Applications > Development. Step 3: Type cmd in  start menu and when cmd.exe shows up in search results, right click it and select "Run as Administrator&quo

What is the use of a USB HUB?

Before seeing the use of the USB hub , let us know what a USB hub is. Older computers have very low number of USB ports, say around two. It might be necessary to plug in more devices in to the computer than the number of the USB ports available. Hence we need a device or an external method by which we can increase the number of USB ports. Here is where the USB hub comes in to play. A USB hub is nothing but, like an extension plug, for the USB port ion the computer. The USB hub consists of multiple ports. The USB hub is connected to the USB port of the computer and then the other end of the hub can be used to connect other external devices. The other end of the USB hub may contain more then one socket for increasing the number of devices that can be plugged in to the computer. Thus the use of the USB hub is simple. It provides multiple sockets to connect multiple devices in to a single USB port. It is just like a multi pin socket.  USB hubs may be of USB 1.1 version or USB 2.0 version.

How to enable logging in IP Messenger?

How to enable logging in IP Messenger? You can enable logging to view conversations later in IP messenger. First Create a text document using notepad in the place where you want to have the log file containing the text you send and receive. Right click the system tray icon of IP messenger and select Settings. Click on Details/Log Settings. Under the Log settings , specify the log text file you created earlier. Do check the Logging available check box. And other details to be logged. ( Check all text boxes if needed) Apply settings and close. Enjoy!!!!