PC Review


Reply
Thread Tools Rate Thread

How to create a batch file?

 
 
Eric
Guest
Posts: n/a
 
      28th Apr 2008
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
 
Reply With Quote
 
 
 
 
bobster
Guest
Posts: n/a
 
      28th Apr 2008
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" <(E-Mail Removed)> wrote in message
news:BD3E2717-B1A1-4DAD-A036-(E-Mail Removed)...
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


 
Reply With Quote
 
ju.c
Guest
Posts: n/a
 
      28th Apr 2008
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" <(E-Mail Removed)> wrote in message
news:BD3E2717-B1A1-4DAD-A036-(E-Mail Removed)...
> 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


 
Reply With Quote
 
Lanwench [MVP - Exchange]
Guest
Posts: n/a
 
      28th Apr 2008
Eric <(E-Mail Removed)> 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.


 
Reply With Quote
 
Big Al
Guest
Posts: n/a
 
      28th Apr 2008
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DOS: How to create a batch file that will move file based on files =?Utf-8?B?QnJhbmRvbg==?= Windows XP General 2 25th Aug 2006 11:50 PM
Going away need to create Batch file gavbam Windows XP 5 26th Jul 2006 07:02 AM
How Do I Create Batch File Dennis Marks Windows XP Basics 10 22nd Jun 2006 12:21 PM
Trying to create a batch file =?Utf-8?B?VGltVA==?= Microsoft Access 1 19th Jun 2005 01:41 PM
Create a batch file? Louise Windows XP Configuration 10 3rd Feb 2005 08:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:07 PM.