kapara
asked on
How to prevent Outlook temp files from staying in OLK directories.
I have noticed that after opening attachments in outlook and then closing the attachments and or saving them and closing outlook the attachments still reside on the PC in temp directory...OLK. Does anyone know how to prevent these attachments from being stored on the machine once outlook has closed?
Hi kapara,
If you want to clean these files up on your computer, then I can provide a simple macro that will run and delete the contents of this folder each time Outlook shuts down. If you are on a network and use roaming profiles or are concerned about leaving files on other computers where a macro isn't an option, then a manual clean up is going to be required.
Cheers!
If you want to clean these files up on your computer, then I can provide a simple macro that will run and delete the contents of this folder each time Outlook shuts down. If you are on a network and use roaming profiles or are concerned about leaving files on other computers where a macro isn't an option, then a manual clean up is going to be required.
Cheers!
kapara,
We have not heard from you. Did any comment help you solve your problem? Do you have any more question? If an Expert helped you, please accept his/her answer above with an excellent or good grade.
Thanks, war1
We have not heard from you. Did any comment help you solve your problem? Do you have any more question? If an Expert helped you, please accept his/her answer above with an excellent or good grade.
Thanks, war1
ASKER
Sorry for not responding. Been out of town. I am interested in a solution that does not require the user to have to perform any action. This Macro sounds like an interesting solution. Could you please give me more details?
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
kapara,
You can run the batch file that I posted above. 06/20/2006 12:19PM PDT
You can run the batch file that I posted above. 06/20/2006 12:19PM PDT
ASKER
Thanks guys
BlueDevilFan gave me a solution which is more suited to my requirement in that it requires no user interaction and is automatically executed when Outlook closes. You say this only applies to local profiles and not roaming profiles. Is there a way to deploy this macro to all users? Is there a chance that it can be added via customization of an MST file or have a vbscript which can be run in a logon script which adds the macro to Outlook?
Thanks,
BlueDevilFan gave me a solution which is more suited to my requirement in that it requires no user interaction and is automatically executed when Outlook closes. You say this only applies to local profiles and not roaming profiles. Is there a way to deploy this macro to all users? Is there a chance that it can be added via customization of an MST file or have a vbscript which can be run in a logon script which adds the macro to Outlook?
Thanks,
It might work okay with roaming profiles once installed. Unfortunately, there is no way to install a macro from outside Outlook. It's a shortcomming that Microsoft needs to address.
ASKER
Is the macro stored in the user profile or is it a common macro which applies to all users?
There is no concept of a common macro in Outlook. They are all user specific. Macros are kept in a file named VBAProject.otm. The file format hasn't been published making it impossible to modify from outside Outlook. You could overwrite it from a login script so long as you are certain that the users don't have any macros already. If they did, then you'd wipe theirs out in favor of yours.
You can manually delete the files from the OLK folder, or write a batch file to delete them
cd C:\Documents and Settings\profilename\Local
del *.*
pause
Reference: http://www.computing.net/programming/wwwboard/forum/14395.html
Best wishes!