How to create a .bat file in windows using notepad.
What is a .bat file?
A .bat file is windows batch scripting file. It is used to automatically execute commands via command prompt (cmd). So that, if you are supposed to run any command using cmd (viz ipconfig to know the ip configurations in your computer), you can create a .bat file for same and running it will do the same job.
Using notepad to create .bat file :
- Open notepad.
- Type in the commands (the same commands as you type in cmd). e.g. ipconfig
- Go to 'file', click on 'save as' and change the 'Save as type' to 'all files(*.*)'.
- Change the 'file name' as 'anyfile.bat'. e.g ip.bat (.bat file extension is important)
- Now you are Done. Save it. It is as simple as that.
see our previous blogs - How to remove bing auto popup in windows 8/8.1
No comments:
Post a Comment