Can Not Clear Temporary Files

G

Gabe

We are having a problem opening an email attachment that is sent daily
using the same name. When opening the attachment the user receives the
following error:

"Can't create file: %filename% Right-click the folder you want to
create the file in, and then click properties on the shortcut menu to
check your permissions for the folder."

I know the default location for opening up an email attachment in
Outlook 2002 is "C:\Documents and Settings\%username%\Local
Settings\Temporary Internet Files\OLKxxx". After checking this folder
I verified the attachment was being stored with the name
"%filename%xx". When the numeric appended to the end of the file name
reaches 99 this error message occurs. Because this folder is a
subdirectory of the Temporary Internet files I assumed that by
clearing the Temporary Internet Files using the Internet Options
properties box it would clear these folders also. However, after using
the "Delete Files…" button and specifying the "Delete all offline
content" check box the files still remain.

As the user can not drill down in Explorer to this folder even with
Administrative privileges, and the Folder View options changed to Show
Hidden Files and Folders and Hide Protected Operating System Files
turned off I am looking for an easy way for her to clear these
temporary files.

I thought to create a batch file that would clear the OLKxxx
directory, however I can not be certain that this directory will
always have the same name. I could also create a batch file that would
clear her Temporary Internet Files directory, but this seems like
overkill.

Anyone have suggestions on an easy way to clear this folder?

Thanks,
Gabe
 
B

Brian Tillman

Gabe said:
As the user can not drill down in Explorer to this folder even with
Administrative privileges, and the Folder View options changed to Show
Hidden Files and Folders and Hide Protected Operating System Files
turned off I am looking for an easy way for her to clear these
temporary files.

Open a command prompt window and CD to the folder above it:

C:> cd %USERPROFILE%\Local Settings\Temporary Internet Files
C:> rmdir /s /q OLKxxx

Works for me.
 
G

Gabe

Open a command prompt window and CD to the folder above it:
C:> cd %USERPROFILE%\Local Settings\Temporary Internet Files
C:> rmdir /s /q OLKxxx

Works for me.

However, this does not make it easy for her (computer illiterate as
she is...) to clear the folder.

It makes it easy for me to do it for her, but then I already knew how
to clear the folder and that was not the purpose of my post.

What I am looking for is an easy way for her to clear the 100
different versions of a file she is sent every day without resorting
to command line.

Would a script written in VB be able to "discover" the location of the
OLKxxx file folder? If so maybe I could just write a vb script...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top