Solved

Moving C:\WINDOWS\TEMP to D:

Posted on 1997-12-15
10
237 Views
Last Modified: 2013-12-16
There are 2 TEMP directories on my C: drive: 1) C:\TEMP and 2) C:\WINDOWS\TEMP.  The first one is apparently used by older (WIN3.1 & DOS) applications, while the second is apparently used by new 32-bit apps.

I know how to move the first one to D: (change the SET TEMP environment variable in AUTOEXEC.BAT).  However, this does not move the second one.  So, how do I move the second one?  I've looked all through the registry and cannot find a reference to it.
0
Comment
Question by:mcsummation
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +3
10 Comments
 
LVL 3

Expert Comment

by:bigelos
ID: 1752541
You need to set the tmp and temp variable in autoxec.bat.  ie

set temp=d:\temp
set tmp=d:\tmp

This is leftover from Win3.1x

One other thing you should do if you want all temp files on drive D: is to set up your virtual memory yourself, instead of letting Win95 take care of it for you.
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1752542
Sorry, that should have been
set temp=d:\temp
set tmp=d:\temp   <--- Not set tmp=d:\tmp

0
 

Author Comment

by:mcsummation
ID: 1752543
Wrong!  The TEMP & TMP variables do NOT point to C:\WINDOWS\TEMP.  Something else does and it's this "other thing" that I'm trying to locate.  Please note that I put into the original question that I'd already done what you suggested.
0
Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

 
LVL 3

Expert Comment

by:bigelos
ID: 1752544
Sorry, all I saw in the original question was the temp variable, not the tmp variable, which are two separate variables, and both DO need to be specified.  Good luck.
0
 
LVL 14

Expert Comment

by:smeebud
ID: 1752545
To make C:\WINDOWS\TEMP FUNCTIONAL on your D drive you'd have to load windows on D.

You can of course create a D:\WINDOWS\TEMP and point your set= to that directory.
0
 
LVL 1

Expert Comment

by:sKiiKe
ID: 1752546
Do You use F4 to doubleboot to DOS 6.2. If so then edit also in the file autoexec.dos those lines SET TEMP=... It is also possible that the C:\TEMP\ -driectory is leftover from earlier operating system. Try to remove it.
0
 

Author Comment

by:mcsummation
ID: 1752547
This is a preload system.  I just want to move the directory.
0
 
LVL 9

Accepted Solution

by:
magigraf earned 100 total points
ID: 1752548
mcsummation...

The answer from Smeebud was right, but maybe you need to understand why.

The immediate answer to your question is:
=========================================
NO, you can't move it.

The reason:
===========
When windows get's installed it created all the needed directories, amongst them in the one brought here in your question (C:\Windows\temp).  As long as windows resides on the C drive, that directory SHOULD remain on the same drive.
Even if you move it, it will not work, it will still point to that path (sometimes have seen it create a new one).

Miscrosoft Knowledge Base has addressed that issue and clearly explained that the only way to move that directory to another drive is to REINSTALL Windows onto that new drive.  There is no other options.

Now if you would like me to point to that Microsoft Articles, I'll be delighted.

As for the other problem that you have Windows preloaded on your system.  Well that's fine, normally the installation disks are somewhere on your hard drive.  You could create floppy disk from that directory as long as you have the formatter utility that will use the 1.68 format capacity, then reinstall windows using these disks.  There is other alternatives but will all depend on what's gona be your next move. (what do you wana do?)

Hope this explaination helped, if you need more info please ask
Regards
0
 
LVL 2

Expert Comment

by:datn
ID: 1752549
It is true that, when Windows install itself, the temp directory is set to "c:\windows\temp\". However, you can manually change this in the registry. You will find the line "c:\windows\temp\" in the folder InstallLocationsMRU of HKEY_CURRENT_USER. If you had Win3.1 on your computer, you will also find the line "c:\temp" in the same place of the registry. You can modify it to "d:\temp\" and "d:\windows\temp" if you want. Once you do this, it will also change the lines in the folder HKEY_USERS as well.
Is this what you're looking for?

0
 
LVL 9

Expert Comment

by:magigraf
ID: 1752550
datn...

Yes, it's true you could change it manualy BUT.. it won't do it.. It will still read the C:\windows\temp even after the modification.

It's firm and confirmed.
Regards
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question