Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to setup a RAM disk for various purposes and among them I would want to set the TEMP variable to point to a folder in the RAM disk. I haven't done this yet, but the RAM disk will be initialized before logging on and I have a certain problem:

If for some reason the RAM disk fails to start, what will the result be? The TEMP variable will still point to F:\Foo, yet the F: drive will not exist.

Additionally, what will happen if I don't set a TEMP variable in the environment variables?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Windows actually sets 4 "temp" variables:

TEMP and TMP for the current user, plus TEMP and TMP for the system. (Scroll through the list of system variables to see them.) So if you don't set them, nothing bad will happen because Windows does it for you.

As for setting it to a nonexistent drive or folder, that depends on the application. Well-written applications check if an object or setting exists before trying to use it, and abort gracefully if it does not exist. Bad applications just display a sometimes-useless error, or they just crash.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.