How do I prevent emf, dat and tmp files creation when printing out excel files?

moxnox63 0 Reputation points
2024-05-21T09:03:29.4666667+00:00

I made a program that runs multiple printers and print out a lot of materials a day - more than 3,000 sheets.

As long as I know, the emf, dat and tmp files are all the temporary files that should be deleted after the task is over but somehow, these files are piled up in INetCache\Content.MSO and AppData\Local\Temp directory even after the related sheets are printed out, eventually filling the disk fully and causing problem.

As a temporary measure, I manually delete these files but it's a bothersome work and I want these temp files to be deleted automatically.

Please let me know what the possible causes of this symptom are, and all the possible solution I can try.

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,982 questions
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
689 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Emi Zhang-MSFT 25,706 Reputation points Microsoft Vendor
    2024-05-22T06:31:03.3033333+00:00

    Hi,

    Does your program not have permission to delete the contents of the corresponding folder?

    It is recommended that you check the corresponding user permissions to ensure that you can access and delete the folders where the temporary files are stored normally. Also try to run as an administrator and see if the program can delete it automatically.

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. francis Isme 0 Reputation points
    2024-08-19T23:15:18.8966667+00:00

    Hi how is it simple to use anaconda python libraries then a few pretty step on t.m.p copilot rather then sitting the solution at once

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.