![]() |
![]() |
|
|
Does anyone have any suggestions on how to create a batch file on XP? I would like to delete Temporary Internet Files and any temp files for all users. Does |
![]() |
|
|
#1 | ||
|
Guest
Posts: n/a
|
Does anyone have any suggestions on how to create a batch file on XP?
I would like to delete Temporary Internet Files and any temp files for all users. Does anyone have any suggestions? Thanks in advance for any suggestions Eric |
||
|
|
|
#2 | ||
|
Guest
Posts: n/a
|
I think this will do what you want and it also removes index.dat files.
I've used it for several years. http://support.it-mate.co.uk/?mode=P...index.datsuite "Eric" <Eric@discussions.microsoft.com> wrote in message news:BD3E2717-B1A1-4DAD-A036-1857DC21115C@microsoft.com... Does anyone have any suggestions on how to create a batch file on XP? I would like to delete Temporary Internet Files and any temp files for all users. Does anyone have any suggestions? Thanks in advance for any suggestions Eric |
||
|
| Sponsored Links |
|
|
#3 | ||
|
Guest
Posts: n/a
|
Clear IE7 Browsing History From the Command Line
If you like to build batch files to automate cleanup on your computer, you'll probably want to include at least one of these commands in your batch script. You can automate any one of the functions on the Internet Explorer 7 Delete Browsing History dialog. And here's the commands that correspond to the different buttons. The most important one from a cleanup perspective is the first, which will delete just the temporary internet files that are cluttering up your computer. To use these commands, just run them from the command line, the start menu search box in vista, a shortcut 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 ju.c "Eric" <Eric@discussions.microsoft.com> wrote in message news:BD3E2717-B1A1-4DAD-A036-1857DC21115C@microsoft.com... > Does anyone have any suggestions on how to create a batch file on XP? > I would like to delete Temporary Internet Files and any temp files for > all > users. > Does anyone have any suggestions? > Thanks in advance for any suggestions > Eric |
||
|
|
|
#4 | ||
|
Guest
Posts: n/a
|
Eric <Eric@discussions.microsoft.com> wrote:
> Does anyone have any suggestions on how to create a batch file on XP? > I would like to delete Temporary Internet Files and any temp files > for all users. > Does anyone have any suggestions? > Thanks in advance for any suggestions > Eric I use the following in a batch file, set up as a startup script which is applied via local or group policy at many of my clients' offices....don't remember where I got this, but it's been very handy. As it acts on all folders, the context in which it runs must permit it to have access to the entire documents and settings folder/subfolders. ------------------ FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO DEL/S/F/Q "C:\Documents and Settings\%%A\Local Settings\Temporary Internet Files\*.*" FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO RD/S/Q "C:\Documents and Settings\%%A\Local Settings\Temporary Internet Files\" ------------------ You could add c:\windows\temp if you liked, too, I suppose. |
||
|
|
|
#5 | ||
|
Guest
Posts: n/a
|
To create a batch file, in explorer, rightclick, new, text file. Give
it a name like clearmystuff.txt Now open it double click, it will open in notepad, put in the commands you want and save. Now rename it to clearmystuff.bat change the extension. This is biggie. You're done. REMEMBER: Now its a batch file. Double click opens it and Windows thinks open means run. Just like opening an exe file = running. Batch files are the same, they run when opened. To change it or edit it you have to right click and say 'open with' or 'edit' and pick notepad or some text editor of choice. I see other responses, but you wanted to know how to make a batch file, here it is. Eric wrote: > Does anyone have any suggestions on how to create a batch file on XP? > I would like to delete Temporary Internet Files and any temp files for all > users. > Does anyone have any suggestions? > Thanks in advance for any suggestions > Eric |
||
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Create Shared Folder Using Batch File or VBS | NewsBot | Microsoft News | 0 | 03-26-2008 04:13 PM |
| Batch file works in command line but not as a batch | Danger | Windows XP | 7 | 02-05-2008 11:50 AM |
| Batch File to manipulate path and file name | ebferro | Windows XP | 8 | 11-26-2007 09:58 AM |
| Create only access - (User should be able to create file but notdelete it) | amit | Windows 2003 Server | 2 | 11-19-2007 12:50 AM |
| whats the command to create a new file using batch script | kripesh | Windows XP | 2 | 09-24-2007 04:12 AM |