For all those who may ever want to delete their cookies , or basically this is just going to show a simple batch file for DOS that when clicked,will delete certain files from a folder .
You can then even ask the bath file to open your favourite browser,or run another batch file ,so on by adding the following lines -
More on the start command
To know more on any command in DOS simple do a :> commandname /?
eg: cd /? , chdir /? , start /? , echo /?
What you could also do is ,make a backup of files or your cookies if you dont want to remove them forever.And basically play aorund with the other DOS commands and batch files to make life easier. IT could be from automatically starting game patch's through a bat file that first loads the patch then uses start command to open the game , it could be to open your faourite webpages in multiple windows.eg: i find it lil easier to run a single bat file that with a single click:
Below is a sample program for doing some of the stuff above
Dont forget to save the bat files as .bat wherever u write them (notepad ,some other editor) .You can make a shortcut of the bat file on ur desktop, put it in the startup folder ,schedule ur bat file (actaully u can makea bat file to schedule itself ! ) ,put a nice icon for it and so on
Also have a nice DOS command reference (pdf file)( which lists all common commands neatly) or this Net guide to Vital DOS commands.Theres also an advanced bat file here that can create html pages ,etc and excellent advanced batch file example here .
PS: check out this thread to see how to Make clickable batch file to close all unwanted services while gaming.http://www.techenclave.com/forums/19462-post4.html
Code:
#this line will be commented
#we first move to the system drive c: or d: etc
[b]c:[/b]
#now we make a directory using mkdir command,to move the cookies to.
[b]mkdir c:\cookies[/b]
#this line moves all text files from the cookies folder to the folder above
[b]cd \Documents and Settings\BB\Cookies
move *.txt c:\cookies[/b]
#to delete them instead ,comment the line above
#and remove the # symbol in the line below
#del *.txt
You can then even ask the bath file to open your favourite browser,or run another batch file ,so on by adding the following lines -
Code:
start iexplore "google.com"
start firefox
More on the start command
START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/WAIT] [/B] [command/program]
[parameters]
To know more on any command in DOS simple do a :> commandname /?
eg: cd /? , chdir /? , start /? , echo /?
What you could also do is ,make a backup of files or your cookies if you dont want to remove them forever.And basically play aorund with the other DOS commands and batch files to make life easier. IT could be from automatically starting game patch's through a bat file that first loads the patch then uses start command to open the game , it could be to open your faourite webpages in multiple windows.eg: i find it lil easier to run a single bat file that with a single click:
- - opens say an msn groups site in IE
- - opens mail sites in firefox
- - open TE user panel in anther window
- - run yahoo messenger and msn
- - runs a text file in notepad ,that contains my friends birthdays ,so that when i login everyday it opens up
- - run updates, mail clients, news readers,or any other file or application you want.
- - more downloaded files from shared folder to another folder so that uploads are reduced
- - you could even start ur bit torrent/download manager,etc
- - load you fav winamp laylist
Below is a sample program for doing some of the stuff above
Code:
#start the sites
start iexplore groups.msn.com
start firefox gmail.com
start firefox techenclave.com/forums/usercp.php
#start messengers
"C:\Program Files\MSN Messenger\msnmsgr.exe"
"C:\Program Files\Yahoo!\Messenger\YPager.exe"
#open birthday reminders,other files
start notepad "E:\Bhasker\birthdays.txt"
#open winamp playlist
f:\music\DreamTheatre.m3u
Dont forget to save the bat files as .bat wherever u write them (notepad ,some other editor) .You can make a shortcut of the bat file on ur desktop, put it in the startup folder ,schedule ur bat file (actaully u can makea bat file to schedule itself ! ) ,put a nice icon for it and so on
Also have a nice DOS command reference (pdf file)( which lists all common commands neatly) or this Net guide to Vital DOS commands.Theres also an advanced bat file here that can create html pages ,etc and excellent advanced batch file example here .
PS: check out this thread to see how to Make clickable batch file to close all unwanted services while gaming.http://www.techenclave.com/forums/19462-post4.html