• Home
  • Reviews
  • Articles
  • News
  • Tools
  • GamingHeaven
  • Forums
  • Network
 

Go Back   DriverHeaven.net > Forums > Software / Tools > Windows XP / 2000 / NT / 9x Forum

Notices

Reply
 
LinkBack Thread Tools
Old Dec 11, 2004, 06:34 PM   #1
Space Monocerotis
 
Dexsal's Avatar
 
Join Date: May 2004
Location: Aust
Posts: 1,401
Rep Power: 0
Dexsal is on a distinguished road

flush your cache.

just would like to known whats the easyest way to flush your cache. As i dont known.
Dexsal is offline   Reply With Quote


Old Dec 11, 2004, 08:08 PM   #2
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

Start ->Run ->CMD

type in or copy/paste this below command line..

ipconfig /flushdns

Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\your windows login name>ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

C:\Documents and Settings\your windows login name>exit
PangingJr is offline   Reply With Quote
Old Dec 11, 2004, 08:18 PM   #3
Space Monocerotis
 
Dexsal's Avatar
 
Join Date: May 2004
Location: Aust
Posts: 1,401
Rep Power: 0
Dexsal is on a distinguished road

thxs go it
Dexsal is offline   Reply With Quote
Old Dec 11, 2004, 08:21 PM   #4
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

Np.
PangingJr is offline   Reply With Quote
Old Dec 13, 2004, 06:02 AM   #5
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

Ipconfig.exe :
Displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings. Used without parameters, ipconfig displays the IP address, subnet mask, and default gateway for all adapters.

Parameters :

IPconfig.exe with the /flushdns Switch :
Flushes and resets the contents of the DNS client resolver cache. During DNS troubleshooting, you can use this procedure to discard negative cache entries from the cache, as well as any other entries that have been added dynamically.

IPconfig.exe with the /displaydns Switch :
Displays the contents of the DNS client resolver cache, which includes both entries preloaded from the local Hosts file and any recently obtained resource records for name queries resolved by the computer. The DNS Client service uses this information to resolve frequently queried names quickly, before querying its configured DNS servers.

--

Run these commands with batch files..

flushdns.cmd
Code:
@echo off
color 1E
title "ipconfig /flushdns"
::path = c:\windows\system32
cd /d "c:\windows\system32"
echo.
echo Press Enter/Return key to flush the DNS resolver cache, 
echo and reloads the entries from Hosts file . . .
set /p =
cls
color 2F
ipconfig /flushdns
echo.
echo.
echo Press Enter/Return key to quit . . .
set /p =
cls
exit
displaydns.cmd
Code:
@echo off
color FC
title "ipconfig /displaydns"
::path = c:\windows\system32
cd /d "c:\windows\system32"
ipconfig /displaydns
echo.
echo Press Enter/Return key to quit . . .
set /p =
exit
Note-- I do not undertake any responsibility and/or liability for any losses and/or damages due to any use of any information or otherwise contained on this web page. And there is no support or warranty of any kind for these batch files. Use them at your own risk.

for Windows 2000 users read this..
Dr Watson Error Message in Services.exe When You Use IPconfig.exe with the /displaydns Switch
http://support.microsoft.com/kb/262637/EN-US/

Last edited by Ctrl-Alt-Del; Feb 1, 2005 at 12:37 AM.
PangingJr is offline   Reply With Quote
Old Dec 13, 2004, 11:10 AM   #6
Delete Me
 
Join Date: Mar 2004
Posts: 14,676
Rep Power: 0
pr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to all

very nice c-a-d

mind if I ask what the color commands in there are for?(I've never used those in a .cmd file before)
pr0digal jenius is offline   Reply With Quote
Old Dec 13, 2004, 11:28 AM   #7
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

Command Color is use to change the text and background colors in a console window,
it's still working..
PangingJr is offline   Reply With Quote
Old Dec 13, 2004, 11:40 AM   #8
Delete Me
 
Join Date: Mar 2004
Posts: 14,676
Rep Power: 0
pr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to all

hmm....that's cool..may hafta fiddle with that...it just uses hex code, right?
pr0digal jenius is offline   Reply With Quote
Old Dec 13, 2004, 11:46 AM   #9
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

yep, here's the info about color attributes.. save your time
Quote:
Color attributes are specified by TWO hex digits -- the first
corresponds to the background; the second the foreground. Each digit
can be any of the following values:

0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White

If no argument is given, this command restores the color to what it was
when CMD.EXE started. This value either comes from the current console
window, the /T command line switch or from the DefaultColor registry
value.

The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute
the COLOR command with a foreground and background color that are the
same.
PangingJr is offline   Reply With Quote
Old Dec 13, 2004, 01:43 PM   #10
Delete Me
 
Join Date: Mar 2004
Posts: 14,676
Rep Power: 0
pr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to allpr0digal jenius is a name known to all

thanks
pr0digal jenius is offline   Reply With Quote
Old Dec 13, 2004, 04:50 PM   #11
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

Np.
PangingJr is offline   Reply With Quote
Old Jan 15, 2005, 10:59 AM   #12
DriverHeaven Junior Member
 
Join Date: Oct 2004
Location: Herts UK
Posts: 56
Rep Power: 0
NuTz is on a distinguished road

what benifits does doing this have? never done it before
NuTz is offline   Reply With Quote
Old Jan 15, 2005, 05:01 PM   #13
md5
DriverHeaven Senior Member
 
md5's Avatar
 
Join Date: Dec 2004
Location: Inside DriverHeaven
Posts: 856
Rep Power: 0
md5 is on a distinguished road

Windows 2000, XP and 2003 come with a DNS client, which caches all the DNS queries made from you. In short, a DNS query is the attempt to find a site's IP address from its hostname. Caching these queries makes your browsing experience faster.

Sometimes, it helps flushing that cache as the DNS client service caches failed DNS queries too, which prevents you from viewing some websites until you refresh the cache or restart your PC
md5 is offline   Reply With Quote
Old Jan 16, 2005, 08:06 AM   #14
DriverHeaven Junior Member
 
Join Date: Oct 2004
Location: Herts UK
Posts: 56
Rep Power: 0
NuTz is on a distinguished road

cheers, i did it not knowing what it would do and i did notice it was a bit quicker!
NuTz is offline   Reply With Quote
Old Jan 16, 2005, 08:16 AM   #15
DH News MOD
 
MIG-31's Avatar
 
Join Date: Dec 2002
Location: Nottingham,UK
Posts: 34,129
Rep Power: 115
MIG-31 has much to be proud ofMIG-31 has much to be proud ofMIG-31 has much to be proud ofMIG-31 has much to be proud ofMIG-31 has much to be proud ofMIG-31 has much to be proud ofMIG-31 has much to be proud ofMIG-31 has much to be proud of
System Specs

Quote:
Originally Posted by Ctrl-Alt-Del
Start ->Run ->CMD

type in or copy/paste this below command line..

ipconfig /flushdns

Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\your windows login name>ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

C:\Documents and Settings\your windows login name>exit
this is why we like Ctrl-Alt-Del on this forum......great expert with windows problems...and thanks for this info..
MIG-31 is offline   Reply With Quote
Old Jan 18, 2005, 09:34 AM   #16
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

thanks for having me here. MIG-31.
PangingJr is offline   Reply With Quote
Old Feb 1, 2005, 12:39 AM   #17
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

Changes made to update the above batch files.

also like to add these two below...

there're two VBScripts EVENTQUERY.vbs and PAGEFILECONFIG.vbs which're located in \WINDOWS\system32 of WinXP. since these scripts should be executed from the Command Prompt using CScript.exe,
i just wrote these two batch files to run the scripts just for displaying a brief information without having to do several clicks in explorer. and i think it may be useful to others.
note-- these batch files are tested on Win XP SP2. and as usual, use these batch files at your own risk.

EventQuery.cmd
--------------
Code:
@echo off
color 1F
goto start

EventQuery.cmd --Lists the Warning and the Error events in 'Application' and 'System' log.
------------------------------------------------------------------------------
Listing the events in 'application' log of host 'xxxxxxxxxxxx'
------------------------------------------------------------------------------
 Type          Event  Date Time                Source            ComputerName
 ------------- ------ ------------------------ ----------------- --------------
 warning       xxxx   x/xx/xxxx xx:xx:xx PM    xxxxxx            xxxxxxxxxxxx
 error         xxxx   x/xx/xxxx xx:xx:xx AM    xxxxxx            xxxxxxxxxxxx

------------------------------------------------------------------------------
Listing the events in 'system' log of host 'xxxxxxxxxxxx'
------------------------------------------------------------------------------
 Type          Event  Date Time                Source            ComputerName
 ------------- ------ ------------------------ ----------------- --------------
 warning       xxxx   x/xx/xxxx xx:xx:xx PM    xxxxxx            xxxxxxxxxxxx
 error         xxxx   x/xx/xxxx xx:xx:xx AM    xxxxxx            xxxxxxxxxxxx

:start
title EventQuery.cmd -by Panging
echo.
cd /d "c:\windows\system32"
cscript.exe eventquery.vbs /fi "type eq error OR type eq warning" /l application /l system
echo.
echo Press Enter key to quit . . .
set /p =
PagefileDisplay.cmd
--------------
Code:
@echo off
goto start

PagefileDisplay.cmd --Displays this system's paging file Virtual Memory settings.
-------------------------------------------------------
Displays a system's paging file Virtual Memory settings

Host Name:			ComputerName
Drive/Volume:		X:
Volume Label:		XXXXX
Location\File Name: X:\pagefile.sys
Initial Size:       XX MB
Maximum Size:       XX MB
Current Size:       XX MB
Total Free Space:   XXXX MB

Host Name:                               ComputerName
Total (All Drives): Minimum Size:        X MB
Total (All Drives): Recommended Size:    XXX MB
Total (All Drives): Currently Allocated: XXXX MB
-------------------------------------------------------

:start
title PagefileDisplay.cmd -by Panging.
echo.
cd /d "c:\windows\system32"
cscript pagefileconfig.vbs /query
echo.
echo Press Enter key to quit . . .
set /p =
PangingJr is offline   Reply With Quote
Old Feb 23, 2005, 02:56 AM   #18
Member
 
Join Date: Mar 2003
Posts: 5,989
Rep Power: 49
PangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the roughPangingJr is a jewel in the rough

a new batch file added.

the Automatic Updates service is needed before going to the WU web site. and since i use a dial-up i've disabled this service and then turn it on just before i go to the WU.

this batch file will give an easy way for a lazy man like me to turn the service on and off..

AutoUpdateService_Enable-Disable.cmd
Code:
@echo off
cls
::color 17
goto start
=================================
AutoUpdateService_Enable-Disable.cmd:
- Enables/Disables the Automatic Updates Service.
=================================
Automatic Updates Service - Description:
- Enables the download and installation of Windows updates.
  If this service is disabled, this computer will not be able 
  to use the Automatic Updates feature or the Windows Update Web site.
=================================
:start
title AutoUpdateService_Enable-Disable.cmd -by Panging
echo.
:Loop
echo 1. To Enable and Start Automatic Updates Service.
echo 2. To Disable and Stop Automatic Updates Service.
echo 3. Exit this program.
echo.
echo.
set Choice=
set /P Choice=Type in the number and press Enter key: 
if not '%Choice%'=='' set Choice=%Choice:~0,1%
echo.
if /I '%Choice%'=='1' goto Enable
if /I '%Choice%'=='2' goto Disable
if /I '%Choice%'=='3' goto End
echo "%Choice%" is not valid. Please try again.
echo.
goto Loop
:Enable
::color 2F
echo Enabling and Starting Automatic Updates Service . . .
echo -----------------------------------------------------
echo.
sc config wuauserv start= auto
sc start wuauserv
goto Selection
:Disable
::color 4F
echo Disabling and Stopping Automatic Updates Service . . .
echo ------------------------------------------------------
echo.
sc config wuauserv start= disabled
sc stop wuauserv
goto Selection
:Selection
::color 17
echo.
echo Press Enter key to go back to main menu . . .
echo ---------------------------------------------
set /p =
cls
goto Loop
:End
::end of batch program.
here's how this batch program looks..

Last edited by Ctrl-Alt-Del; Feb 23, 2005 at 03:18 AM.
PangingJr is offline   Reply With Quote
 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
vBulletin implementation by Craig '5320' Humphreys

All times are GMT -5. The time now is 08:39 PM. Copyright ©2008 HeavenMedia.net