Vista 环境变量中的 %TMP% 和 %TEMP% 有什么区别? [英] What's the difference between %TMP% and %TEMP% in Vista environment variables?
问题描述
在我的计算机上,环境变量 %TMP% 和 %TEMP% 都指向同一个位置.
On my computer, the environment variables %TMP% and %TEMP% both point to the same location.
那些只是为了向后兼容问题,还是有真正的区别?
Are those for backward compatibility issues only, or is there a real difference?
推荐答案
是为了兼容性.它一直回到DOS.由于没有标准,一些 DOS(和 Win 3.x)应用程序会查找 %TMP% 环境变量,而其他应用程序会查找 %TEMP%.如果您在 AUTOEXEC.BAT 文件中设置它们,则最好.
It is for compatibility. It goes all the way back to DOS. Since there were no standards, some DOS (and Win 3.x) applications would look for the %TMP% environment variable and others would look for %TEMP%. You were best off if you set both of them in the AUTOEXEC.BAT file.
Windows NT 会自动设置它们,以确保所有应用程序继续正常运行.%TEMP% 现在是标准,但 %TMP% 仍然存在.
Windows NT set both of them automatically just to make sure all of the apps continued to work OK. %TEMP% is the standard now, but %TMP% lives on.
看起来理查德已经在评论中提到了 DOS 方面.
Looks like Richard already mentioned the DOS aspect in a comment.
这篇关于Vista 环境变量中的 %TMP% 和 %TEMP% 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!