A batch file contains a series of commands which make a task into automated instead oftyping the same commands same time over and over.
But here in this case you just need to double click the file you have made and all the thing will do automatic for you. And you happy and feel like boss.
Writing your own batch file.
Starting with simple batch file creation: Getting the login page of your favorite site www.facebook.com( even i am also very addicted to fb)
STEP1.
Open your NOTEPAD and Click on FILE and choose Save as . It will display a prompt box to save the file.
Give the filename with .bat extension and choose ALL FILES from below box(And these are mandatory )
Lets start with the code.
// I have created a simple program:
To open the login page from firefox browser(is you want you can edit the browser also for example if you are a great user of using internet explorer write it as start explorer.exe www.facebook.com).
Every time need not to write "www.facebook.com: on the address bar of the any browser.
Just create a batch file and double click it and it will redirect you the login page which is the mose efficient and time saving.
Just try the below code and save it as .bat file extension and choose All Files(*.*) as shown above picture.
@echo off
start firefox.exe www.facebook.com
Now double click on the bat file that you just create and you will directed to the login page of face book. And you are done. I will tell you later how can also you will get the home page directly without providing the username and password. But as of now ,i knew this much,let me do some experiment and i will get back to you.
My Next Example will make you excited i guess
How to propose your boyfriend /Girlfriend I love you .
Here is a program to say "I love you ". But i am saying you don't do it because it is just a prank and you will in a trouble . Don't do it in professional because it may harm your system but yes if you wil try in your own laptop and desktop ,then you are most welcome!!
If you find the problem ,then my suggestion is to retstart your system and you are good.
But have a try..
Write just the below code as like above in a Notepad and save the file as .bat extension
The code:
@echo off
:I love you
Msg" Hey listen!! I am here to say you!! I LOVE YOU!!!
goto I love you
(Don't worry all the character in this case are case insensitive.)
For more update on the batch file please visit the below link
http://www.robvanderwoude.com/batexamples.php?fc=C
Thanks....Have Fun...
No comments:
Post a Comment