Windows 10: Issues After Moving Windows TEMP & TMP Directories

  1.    11 Feb 2018 #1

    Issues After Moving Windows TEMP & TMP Directories


    To save space on my OS drive, I moved both the user account & system TEMP / TMP folder locations to a larger drive. I rebooted & tested the effects for a few days. Windows itself has not given me any noticeable issues. But I have noticed at least two programs that do not like this change. Malwarebytes & an addon for Firefox called Save Images.

    The issue with MB is with the "right click" context menu in Windows. When the TEMP/TMP folders are moved, MB will not respond at all to using the right click context menu to scan an individual file or folder. It simply does nothing. Performing the same action, AVG Free is not affected at all. It performs normally.

    The Firefox addon is an image downloader. You simply right click on the page with the images that you want to download & it will open them all on a seperate tab to view & then download. The issue with it after the TEMP/TMP folder move is that when you try to load the images into the new tab, Firefox will open a new tab, but instead of image files laid out on the page, there will be a list of all the top level file folders on the drive where I put the TEMP/TMP directories. A similar image downloader in Chrome is not affected. So it is software specific.

    I asked on the MB forum what can I do to make MB behave normally with my changes & the response was that there was no way at this time.

    To the point, please help me to understand why do these programs have issues with the TEMP/TMP folders being moved if Windows knows where they are. Windows after all is the "enviroment" in which these programs operate. Is it not in charge of "directing traffic" for all the information back and forth on your system?

    Can anything be done on my end to help these programs work as intended with my changes?
      My ComputerSystem Spec

  2.    11 Feb 2018 #2

    Hi. just how did you move those folders ?
      My ComputersSystem Spec

  3.    11 Feb 2018 #3

    CountMike said: View Post
    Hi. just how did you move those folders ?
    By editing the paths in the environment variables. Control panel \ System \ Advanced system settings \ Environment variables.
      My ComputerSystem Spec

  4.    11 Feb 2018 #4

    You're supposed to create the new paths (and copy any existing files from old paths) before editing Environment variables to show the new paths.

    In other words you should leave the existing
    TEMP / TMP folders in place and create copies in the new locations.





      My ComputerSystem Spec

  5.    11 Feb 2018 #5

    Callender said: View Post
    You're supposed to create the new paths (and copy any existing files from old paths) before editing Environment variables to show the new paths.

    In other words you should leave the existing
    TEMP / TMP folders in place and create copies in the new locations.
    #1) On another drive I created two new folders. <path 1>/TEMP folder for the user account & a separate <path 2>/TEMP folder for the system. I changed the paths of the existing TEMP / TMP directories to these new folders in the environment variables area of windows. The existing user account TEMP / TMP pointed to the same directory. The same applies to the system folders (but a different path than the user account)
    #2) I did not delete any existing folders
    #3) I rebooted
    #4) I cannot see if windows kept the old directories or not. This account is not an elevated admin at the moment.

    I am not sure what why would you need to copy the contents of the temp directory? Windows will recreate them as required. You can routinely delete everything in these folders that windows will allow you to and it will recreate whatever it requires.
      My ComputerSystem Spec

  6.    11 Feb 2018 #6

    Well I've only ever moved TEMP / TMP when I was using a RAMdisk. Anyway from the horse's mouth so to speak.

    Can I move my TEMP and TMP data to a RAMDisk - Microsoft Community

    I know that RAMdisk is being discussed but surely the same applies when moving to any other drive?

    If your browser or other application is following system defined paths then the new locations should works but if files in temp folders are missing because they were not copied across then it could cause problems.

    EDIT: Aslo from this source:

    How do I change the location of the Windows temporary files folder - and should I?

    A couple of notes about making the change:
    The folder must exist - Windows will not create it for you. If it doesn't exist, it's unclear what will happen, but most likely Windows will put the temporary files is a random location, or some programs may not work at all.
      My ComputerSystem Spec

  7.    11 Feb 2018 #7

    RE: Firefox. Would suggest a clean FF install. See backup profile:

    Firefox Keeps Re-enabling Bing Solved - Page 3 - Windows 10 Forums

    Then see here about deleting FF leftovers before reinstalling. Apologies if you know this already.

    Firefox Keeps Re-enabling Bing Solved - Page 7 - Windows 10 Forums
      My ComputerSystem Spec

  8.    11 Feb 2018 #8

    enthusiast said: View Post
    I am not sure what why would you need to copy the contents of the temp directory? Windows will recreate them as required. You can routinely delete everything in these folders that windows will allow you to and it will recreate whatever it requires.
    Well windows disk cleanup excludes temp files that are newer than 7 days old but it's done that way so that it won't cause problems.
    You could change this setting with a registry hack:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files
    by setting a lower value for "last access" but personally I leave it set to 1 - in other words 24 hours.
    Also see Ccleaner recommended settings for temp files:

    Click image for larger version. 

Name:	CCleaner.jpg 
Views:	17 
Size:	36.9 KB 
ID:	176709

    In other words some temp files are important.
      My ComputerSystem Spec


 

Related Threads
Solved moving temp folder location in Performance & Maintenance
I moved my system and user temp folder locations in the belief it would save so many writes to my SSD, not sure if it was a good idea or not.. now have an error popup which mentions not being able to find the temp folder.....this could be because...
The issue is when trying to move a file or group of files from one folder to another, like dragging and dropping files, one of the files will open in its respective application, leading to failure of moving files. At first I suspected the files were...
Apologies for the slightly ambiguous title, but I have combed the web trying to see if anyone else has experienced this issue. If I have multiple windows open (say Chrome, Outlook, Word and Exchange), my mouse will randomly jump between windows,...
CPU not showing temp in Open hardware monitor or core temp Used to show ok, I am certain...In the BIOS when I boot the PC it shows ok approx 60-65oC But not in the aforementioned apps....cant think why Thanks
So I just got this new Lenovo Flex3 computer, and it's totally awesome. But a huge problem that I can't figure out how to fix, and I know it's not actually how to fix, but I don't like it, I can't move the mouse using the trackpad while pressing...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 10:36.
Find Us