Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > 16-bit %temp% points to %systemroot%temp

16-bit %temp% points to %systemroot%temp

Forum Windows XP : Windows XP General Discussion - 16-bit %temp% points to %systemroot%temp

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.security_admin (More info?)

 

I'm trying to restrict execute access on XP wherever a limited user has
write access to, including the temporary folders.

For 32-bit apps, %temp% points to %userprofile%\locals~1\temp (in short
filename mode too) and any apps creating temporary files store them here.
For 16-bit apps, for some reason, this points to %systemroot%\temp. This
breaks such things as printing from Internet Explorer when launched from a
16-it app.

To demonstrate, launch cmd.exe and type SET. Then launch command.com and
type SET and compare the two results.

Windows 2000 since Service Pack 3 behaved like this, too, until I applied a
patch described in KB840214, which normally applies to Win2K Terminal Server
but also applies to Win2K Pro. After applying KB840214, %temp% points to
the same place for 16-bit and 32-bit apps.

Is there a similar patch available for Windows XP? The MSKB returned no
results.

I've tried editing autoexec.nt and config.nt - %temp% gets overridden by the
operating system settings.

--
PGP key (0x0AFA039E): <http://www.pan-am.ca/consulting@pan-am.ca.asc>
Sometimes it's hard to tell where the game ends and where reality bites,
er, begins. <http://vmyths.com/resource.cfm?id=50&page=1>

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > 16-bit %temp% points to %systemroot%temp
Go to:

There are 1238 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them