Here is a quick way to do it. You can run this from a command prompt, or a batch file or simply from the 'Run' menu which pops up when you click Run from the Start menu.
#To clear IE7 temporary Internet files RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8 #To clear IE7 browsing cookies RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 #To clear IE7 browsing history RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1 #To clear IE7 form data RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16 #To clear IE7 remembered passwords for filling web login forms RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32 #To clear or delete all IE7 browsing history i.e all of the above! RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255