how to delete file history with Command Prompt ?
Welcome, Guest. Please login or register. Did you miss your activation email?
Britec Computer Tech Help Support Forums  « Microsoft Support  « Windows XP Support « how to delete file history with Command Prompt ?
Pages: [1]
  Print  
Author Topic: how to delete file history with Command Prompt ?  (Read 260 times)
otman06
Newbie
*
Posts: 26


View Profile
« on: September 08, 2010, 02:28:52 PM »

 Azn
how to delete file history ,cookies  cache ... with Command Prompt ?
thanks
Logged
Britec
Administrator
Hero Member
*****
Posts: 3346



View Profile
« Reply #1 on: September 08, 2010, 11:59:13 PM »

To use these commands, just run them from the command line, the start menu search box in vista, or a batch file.

Temporary Internet Files

    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

Cookies

    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

History

    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

Form Data

    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

Passwords

    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

Delete All

    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

Delete All – “Also delete files and settings stored by add-ons”

    RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
Logged



otman06
Newbie
*
Posts: 26


View Profile
« Reply #2 on: September 09, 2010, 03:49:25 AM »

 Azn
thanks
but I have a computer running MS-DOS i want to delete history
what can i do ?
Logged
Britec
Administrator
Hero Member
*****
Posts: 3346



View Profile
« Reply #3 on: September 09, 2010, 06:20:00 AM »

otman06 You can use these commands in command prompt

Using in Command Prompt Type

Here are the commands you can use. Go to Start > Run. Type CMD and press Enter or Run as Administrator. In the Command Prompt window, type (or copy and paste) the following commands, and press Enter:

Delete Temporary Internet Files


RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

Delete Cookies

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

Delete History

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

Delete Form Data


RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

Delete Stored Passwords

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

Delete All

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

Delete All with the "Also delete files and settings stored by add-ons" options selected

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

Now it seems that the interesting bit is that you can combine the numbers to get 2 or more functions at the same time. For example, type:

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 9

This will delete the files (+8) and history (+1) in one step. You can incorporate this into a logoff script, and assign it to users by using Group Policy (GPO).

--------------------------------------------------------------------------------------------

Creating a batch file

You can also create a batch file that you can simply run by double-clicking on it. Save the following text as a .BAT file:

Code:
@ECHO OFF
ECHO Deleting current user's Temporary Files, Cookies, History, Form Data and Stored Passwords
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
ECHO Done!


This example uses a different approach:

Code:
@ECHO OFF
ECHO Cleaning Current User's Temp Folders
FOR /D %%G IN ("C:'Documents and Settings'*.*") DO DEL/S/Q/F "%%G'Cookies'*.*"
FOR /D %%G IN ("C:'Documents and Settings'*.*") DO DEL/S/Q/F "%%G'Local Settings'Temp'*.*"
FOR /D %%G IN ("C:'Documents and Settings'*.*") DO DEL/S/Q/F "%%G'Local Settings'History'*.*"
FOR /D %%G IN ("C:'Documents and Settings'*.*") DO DEL/S/Q/F "%%G'Local Settings'Temporary Internet Files'*.*"
ECHO Done!
PAUSE
CLS
PAUSE
CLS
« Last Edit: September 09, 2010, 06:22:27 AM by Britec » Logged



otman06
Newbie
*
Posts: 26


View Profile
« Reply #4 on: September 09, 2010, 02:32:04 PM »

thankssssss
 Bye
Logged
Pages: [1]
  Print  
 
Jump to: