This is old school batch programming but is very handy.
Goto notepad and paste the below code and save with .bat extension