Archive for the ‘Outlook’ Category

Startup Script Batch File for Outlook Error "Can’t Create file: Right-click the folder….."

Posted on October 22nd, 2008 |

Here is a very simple batch file that can be added to the network logon script in Active directory or simply in your startup folder in windows if you or your end users frequently run into this error:

@echo off
ECHO Deleting Outlook 2003 temporary files
cd %userprofile%/local settings/temporary internet files/olk*
if errorlevel 1 goto end
del *.* /s /f /q

Batch file available here. (right-click, save as)

This batch file will simply navigate to the current user’s temporary Outlook folder and delete all the files in the root and sub-folders. Just be careful you don’t miss the %userprofile% variable, otherwise that command will delete all the files that happen to be in the current folder which is probably just the root of the user profile.

Original post found here.

Update 1/6/2009:  Big thanks to Mark suggesting some error handling to make sure you don’t accidentally wipe the current directory if the change directory command doesn’t take place.  I’ve updated the code snippet and example batch file with his suggestions.

5 Comments » | Categories: Microsoft, Outlook, technology

Outlook Error – Out of memory or system resources.

Posted on August 5th, 2008 |

Today I came across a new error in Outlook 2003. I had a search result set pulled up in my inbox of 700+ items and then tried to move one folder into another. I was prompted with the following error: Can’t move the items. Out of memory or system resources. Close some windows or programs and try again.

Here is another vague Outlook message but at least with this one most people would try closing Outlook and opening it again and the move will then work. Or you can simply close your search results in Outlook and perform the move without error.

No Comments » | Categories: Microsoft, Outlook, technology

Outlook Error: “Can’t Create file: Right-click the folder…..”

Posted on February 19th, 2008 |

Today I had a user run into an odd error in Outlook while trying to open an .rtf attachment. “Can’t create file: repCarrierDispatchMaster.rtf. 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”. This was a new one for me and right away I incorrectly assumed this was due to Outlook 2003’s attachment security settings. This wasn’t the case nor was the user’s anti-virus software at fault.

What caused the problem is the way Outlook saves temporary files when opened. It saves a copy of the attachment into the hidden Outlook sub-folder of Temporary Internet Files and appends that file name with a number sequence. The problem comes up when you try to open an attachment with the same name more than 99 times as Outlook will not increment the filename any further. That’s what trips this error.

To fix the problem you first need to figure out the name of Outlook’s hidden temp folder. Outlook creates a temp folder named OLK*** where *** is a random number. Windows Explorer hides this folder even if you have “show hidden folders” turned on. To find the folder open the command line from the start menu or by typing CMD from the Run box. You will start at the local user profile path. From here type the following and press enter:

cd “Local Settings\Temporary Internet Files”

Now that you are in the temporary Internet Files it’s time to find the hidden folder.

dir *.

This will list all folders and files without attachments. In my example you can see my folder is named OLK18. You can now either open Windows Explorer and navigate to the Temp Internet Files folder and add \OLK18 (substitue with the name of your folder) and remove all the duplicate files here or stay in the command line and just change directory with the cd command to the outlook folder and run del *.* to delete all the files within the folder.

Ideally Outlook should be doing some housekeeping and keep these files cleaned up.

UPDATE 10/22/08: Using a batch file to automatically clear this folder on computer startup.

19 Comments » | Categories: Outlook, technology