Solved

There's gotta be a way to do this...

Posted on 2000-04-30
9
145 Views
Last Modified: 2013-12-28
Is there a way to change the default temp directory from C:\Windows\Temp to another drive/directory? I remember there being a way to do this, but I can't remember how to do it. (It was probably under NT, actually.) My C: drive is perilously full, and I'd like to move my temp directory to another partition that has over a gig free. Any help on how to accomplish this is appreciated.
0
Comment
Question by:Corvidae
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 1

Expert Comment

by:chev
Comment Utility
This one is hard call it is easy to change via a registry key.. The big problem not all your applications are looking for your new temp directory.. They want to find windows\temp whatever drive its on.. Just looking through the registry will show you that a lot of apps have keys that say temp is c:\windows\temp.. That means that these applications will still attempt to use your c:\windows\temp directory irregardless of what you make the system default temp directory.. Might be worth while to migrate some of your applications or data over to your spare partition instead..
0
 

Author Comment

by:Corvidae
Comment Utility
All the programs I can tell to look elsewhere within the program itself (Photoshop, etc.) are looking elsewhere. I'mmainly looking to tell Windows itself to stop filling my C: drive when installing programs.

If you could give me the Registry key that would do that, that'd be great.

-Corvi
0
 
LVL 12

Accepted Solution

by:
pjknibbs earned 30 total points
Comment Utility
If you're running Win9x (which sounds likely, judging by the question) then it's nothing to do with the registry. You need to add the following lines to AUTOEXEC.BAT:

SET TEMP=<path>
SET TMP=<path>

where <path> is the path to your new temp folder. You might want to move your browser's cache as well, because that tends to get full of lots of small files.
0
 
LVL 2

Expert Comment

by:PCGuru
Comment Utility
I agree with chev, however, the problem doesn't necessarily lie with Windows itself. Most program authors for the Win9x platform set the path in the compiled setup program and the placement of temporary install files is determined this way. If you want to be able to free the space used by applications that don't delete their own temp install bits it should be safe to do so - in *most* cases. There are some good online reference books that you can access for free at the following site - http://www.informit.com/

Hope we all have been able to contribute constructively to your problem resolution.

Cheers,
Guru
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 2

Expert Comment

by:PCGuru
Comment Utility
Almost forgot, a simple way I used to handle this when disk space was a problem was add a line to the autoexec.bat file and change one of the parameters in the msdos.sys file. This will only handle "*.tmp" files though.
Repost if you are interested in this minor solution.

Again,
Guru
0
 

Expert Comment

by:v_purbhe
Comment Utility
In your Autoexec.bat file change the path for following lines.

SET TMP = <path>
SET TEMP = <path>

 This will solve the problem.
0
 
LVL 2

Expert Comment

by:PCGuru
Comment Utility
>>> v_purbhe >>> No ethics eh, jumping on someone elses' comment as your own answer!! Surely you have intelligence of your own, then again, maybe not.

Corvidae, if this solves your problem I think you should really give the points to pjknibbs.

Guru
0
 

Author Comment

by:Corvidae
Comment Utility
Boy, do I feel like a doofus. I can't believe I forgot about that (Seeing as how it was just REMmed out in my autoexec.bat). =P

Oh well. Points go to pjknibbs. Thanks, guys (and gals, if that's the case)!

-Corvidae

0
 

Expert Comment

by:v_purbhe
Comment Utility
>> PCGURU>> Dont teach me ethics. I dont look at the answers from fools like you. Thanks though for your comments. I have a garbage box. One more to add.
0

Featured Post

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

Windows Mobile Barcode Scanning These days almost every product has a barcode in some way... amongst there are 1D barcodes en 2D barcodes.. From http://www.barcodeman.com/faq/2d.php I found some handy definitions and insights. 1D barcodes …
This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now