Using the windows\temp folder for programs? (or use what temp directory in its place)?

B

Bill in Co.

I've noticed in Windows XP that the C:\Windows\Temp folder is a protected
system folder, and is "off limits" to most programs (for *their* own
temporary use). In fact, that fact seems to include all subdirectories
under C:\Windows. (This is very different from the previous operating
systems (W95, W98), and seems to create a small problem here for some of my
apps).

So I guess unless one messes around with the "Environment Variables", one
HAS to redirect all software being ported to Windows XP (from Win98/95), or
installed on Windows XP, to use some other temp directory instead for its
application program's temp files. Is that correct? If so, what
directory do most people use for the various program application's temp
files?
 
U

Uncle Grumpy

Bill in Co. said:
So I guess unless one messes around with the "Environment Variables", one
HAS to redirect all software being ported to Windows XP (from Win98/95), or
installed on Windows XP, to use some other temp directory instead for its
application program's temp files. Is that correct? If so, what
directory do most people use for the various program application's temp
files?

??

I use whatever the default folder is... and it's worked since DAY ONE.
 
C

Colin Barnhorst

This is even truer in Vista. I believe the protection began in earnest with
XP SP2 as a security measure against tampering, especially by malware.
 
B

Bill in Co.

That is one heck of a path!!! Do we have to use such a thing?
Plus - I'm not sure all older programs can even accept such a path.

Or maybe we can create our own to use.... say like creating a C:\WinTemp
directory. That would be a lot simpler, wouldn't it?

C:\Documents and Settings\[user]\Local Settings\Temp
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
AumHa VSOP & Admin http://aumha.net
DTS-L http://dts-l.net/
I've noticed in Windows XP that the C:\Windows\Temp folder is a protected
system folder, and is "off limits" to most programs (for *their* own
temporary use). In fact, that fact seems to include all subdirectories
under C:\Windows. (This is very different from the previous operating
systems (W95, W98), and seems to create a small problem here for some of
my
apps).

So I guess unless one messes around with the "Environment Variables", one
HAS to redirect all software being ported to Windows XP (from Win98/95),
or
installed on Windows XP, to use some other temp directory instead for its
application program's temp files. Is that correct? If so, what
directory do most people use for the various program application's temp
files?
 
B

Bill in Co.

But the problem with that is, most programs use by default (or want to use
by default) the C:\Windows\Temp directory for their own temp files (at least
from what I've seen). So what do you use? Something like
C:\Documents and Settings\[user]\Local Settings\Temp like PA Bear posted?

Ugh...
 
C

Colin Barnhorst

I don't know about XP but Vista virtualizes any attempt to write to
protected folders and redirects the output to a user folder.

Bill in Co. said:
But the problem with that is, most programs use by default (or want to use
by default) the C:\Windows\Temp directory for their own temp files (at
least from what I've seen). So what do you use? Something like
C:\Documents and Settings\[user]\Local Settings\Temp like PA Bear posted?

Ugh...

Colin said:
This is even truer in Vista. I believe the protection began in earnest
with
XP SP2 as a security measure against tampering, especially by malware.
 
T

Terry R.

The date and time was 1/24/2008 4:40 PM, and on a whim, Bill in Co.
pounded out on the keyboard:
That is one heck of a path!!! Do we have to use such a thing?
Plus - I'm not sure all older programs can even accept such a path.

Or maybe we can create our own to use.... say like creating a C:\WinTemp
directory. That would be a lot simpler, wouldn't it?

C:\Documents and Settings\[user]\Local Settings\Temp
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
AumHa VSOP & Admin http://aumha.net
DTS-L http://dts-l.net/
I've noticed in Windows XP that the C:\Windows\Temp folder is a protected
system folder, and is "off limits" to most programs (for *their* own
temporary use). In fact, that fact seems to include all subdirectories
under C:\Windows. (This is very different from the previous operating
systems (W95, W98), and seems to create a small problem here for some of
my
apps).

So I guess unless one messes around with the "Environment Variables", one
HAS to redirect all software being ported to Windows XP (from Win98/95),
or
installed on Windows XP, to use some other temp directory instead for its
application program's temp files. Is that correct? If so, what
directory do most people use for the various program application's temp
files?

Hi Bill,

I redirect my temp folders to one I create, even on workstations we
configure (x:\temp, where x is the drive of your choice). I send
everything to one folder. Right click on My Computer, select Properties,
click the Advanced tab and Environment Variables button. Change the User
variables at the top and the System variables below.

Then I create a batch file to clean the temp folder in the Startup
folder. That way no junk builds up there. And no, it's never
interfered with an install procedure, as the Startup folder is processed
last.

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
B

Bill in Co.

I think that happens here too, in some instances, but then again, some older
programs can't handle that redirect (at least as I recall). (By older, I
mean programs written in the W95 and/or W98 era).

Colin said:
I don't know about XP but Vista virtualizes any attempt to write to
protected folders and redirects the output to a user folder.

Bill in Co. said:
But the problem with that is, most programs use by default (or want to
use
by default) the C:\Windows\Temp directory for their own temp files (at
least from what I've seen). So what do you use? Something like
C:\Documents and Settings\[user]\Local Settings\Temp like PA Bear posted?

Ugh...

Colin said:
This is even truer in Vista. I believe the protection began in earnest
with
XP SP2 as a security measure against tampering, especially by malware.

I've noticed in Windows XP that the C:\Windows\Temp folder is a
protected
system folder, and is "off limits" to most programs (for *their* own
temporary use). In fact, that fact seems to include all
subdirectories
under C:\Windows. (This is very different from the previous
operating
systems (W95, W98), and seems to create a small problem here for some
of
my apps).

So I guess unless one messes around with the "Environment Variables",
one
HAS to redirect all software being ported to Windows XP (from
Win98/95),
or installed on Windows XP, to use some other temp directory instead
for
its application program's temp files. Is that correct? If so,
what
directory do most people use for the various program application's temp
files?
 
C

Colin Barnhorst

It isn't up to the programs. They are not aware of the redirection. That
would defeat the purpose of the virtualization. The virtualization extends
to even writing registry keys there instead of in the registry itself. MS
has said that this is a temporary measure to give software developers time
to correct their programs and that there is no guarantee that it will be
supported in Windows 7. From what I have heard it won't be. A lot of
legacy software is not going to run in Windows 7 for this and some other
reasons if I understand what is coming up correctly.

Bill in Co. said:
I think that happens here too, in some instances, but then again, some
older programs can't handle that redirect (at least as I recall). (By
older, I mean programs written in the W95 and/or W98 era).

Colin said:
I don't know about XP but Vista virtualizes any attempt to write to
protected folders and redirects the output to a user folder.

Bill in Co. said:
But the problem with that is, most programs use by default (or want to
use
by default) the C:\Windows\Temp directory for their own temp files (at
least from what I've seen). So what do you use? Something like
C:\Documents and Settings\[user]\Local Settings\Temp like PA Bear
posted?

Ugh...

Colin Barnhorst wrote:
This is even truer in Vista. I believe the protection began in earnest
with
XP SP2 as a security measure against tampering, especially by malware.

I've noticed in Windows XP that the C:\Windows\Temp folder is a
protected
system folder, and is "off limits" to most programs (for *their* own
temporary use). In fact, that fact seems to include all
subdirectories
under C:\Windows. (This is very different from the previous
operating
systems (W95, W98), and seems to create a small problem here for some
of
my apps).

So I guess unless one messes around with the "Environment Variables",
one
HAS to redirect all software being ported to Windows XP (from
Win98/95),
or installed on Windows XP, to use some other temp directory instead
for
its application program's temp files. Is that correct? If so,
what
directory do most people use for the various program application's
temp
files?
 
P

PA Bear [MS MVP]

You asked, I answered.
That is one heck of a path!!! Do we have to use such a thing?
Plus - I'm not sure all older programs can even accept such a path.

Or maybe we can create our own to use.... say like creating a C:\WinTemp
directory. That would be a lot simpler, wouldn't it?

C:\Documents and Settings\[user]\Local Settings\Temp
--
~Robear Dyer (PA Bear)
MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002
AumHa VSOP & Admin http://aumha.net
DTS-L http://dts-l.net/
I've noticed in Windows XP that the C:\Windows\Temp folder is a
protected
system folder, and is "off limits" to most programs (for *their* own
temporary use). In fact, that fact seems to include all subdirectories
under C:\Windows. (This is very different from the previous operating
systems (W95, W98), and seems to create a small problem here for some of
my
apps).

So I guess unless one messes around with the "Environment Variables",
one
HAS to redirect all software being ported to Windows XP (from Win98/95),
or
installed on Windows XP, to use some other temp directory instead for
its
application program's temp files. Is that correct? If so, what
directory do most people use for the various program application's temp
files?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top