Skip to content
TheChatArchiveThe Chat Archive
DeepSeekdeepseek-r1-0528· DeepSeekHugging Face LMArena Human Preference 140K

in win10 how to control temp folder. in my case it is…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-3-7-sonnet-20250219-thinking-32k’s answer.
  1. User

    in win10 how to control temp folder. in my case it is C:\Users\MLP_PR~1\AppData\Local\Temp but i would like to control it. possible ? how ?

  2. DeepSeek Assistant

    To control the Temp folder in Windows 10 (including changing its location or managing its contents), follow these methods:


    1. Change the Temp Folder Location

    Via Environment Variables (recommended):

    1. Create a new folder where you want the Temp files stored (e.g., D:\CustomTemp).
    2. Press Win + R > Type sysdm.cpl > Go to the Advanced tab > Click Environment Variables.
    3. Under User variables, select TEMP and click Edit:
      • Set Variable value to your new path (e.g., D:\CustomTemp).
      • Repeat for TMP (set it to the same path).
    4. Under System variables (if needed), edit TEMP and TMP to the new path.
      Note: Requires admin rights; affects all users.
    5. Click OK > Restart your PC.

    Using Command Line (advanced):

    • Open Command Prompt (Admin) and run:
      setx TEMP "D:\CustomTemp"
      setx TMP "D:\CustomTemp"
      
    • Restart your PC.

    2. Automate Temp Folder Cleanup

    Via Storage Sense:

    1. Go to Settings > System > Storage.
    2. Toggle Storage Sense ON.
    3. Click Configure Storage Sense:
      • Under Temporary Files, check Delete temporary files that my apps aren't using.
      • Set cleanup frequency (e.g., daily/weekly/monthly).

    Manual Cleanup:

    • Press Win + R > Type %TEMP% > Press Enter.
    • Delete all contents (skip files in use).

    Scheduled Task (for advanced users):

    Create a batch script (CleanTemp.bat):

    @echo off
    rd /s /q "%TEMP%"
    mkdir "%TEMP%"
    

    Then use Task Scheduler to run it periodically.


    3. Fix Permission Issues

    If apps can’t access the new Temp folder:

    1. Right-click your custom Temp folder > Properties > Security.
    2. Click Edit > Add.
    3. Enter your username > Check Full control > Apply.

    4. Verify the Changes

    • Press Win + R > Type cmd > Run:
      echo %TEMP%
      echo %TMP%
      
      This should display your new path.

    Key Notes:

    • Admin Rights Required: Changing system-wide variables or cleaning system Temp (C:\Windows\Temp) needs admin privileges.
    • App Compatibility: Some legacy apps may not respect custom Temp paths. Test critical applications.
    • Drive Type: Avoid network drives or slow storage for Temp—this can degrade performance.
    • Data Loss: Cleaning Temp deletes transient files; avoid deleting files manually during active tasks.

    By relocating the Temp folder, you can free up space on your system drive (e.g., C:) and manage storage more efficiently. Use Storage Sense for hassle-free maintenance.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.