当前位置:网站首页>Why does the system convert the temp environment variable to a short file name?
Why does the system convert the temp environment variable to a short file name?
2022-07-02 15:43:00 【Topomeyer - long development road】
Careful you , You may find such a situation .
When setting environment variables through the control panel of the system ,TEMP and TMP These two environment variables are quietly converted into their short file name versions ( If it can be converted ).
We can't help but ask , Why is that ?
Smart you , I must have guessed : For compatibility .
For most batch files (.BAT file ) Come on , They assume %TEMP% and %TMP% These two environment variables will not contain internal space characters .( Maybe some other applications will also make such assumptions , However, such problems are particularly prone to occur in general batch scripts .)
I also mentioned a so-called ” If it can be converted ”, Because you can prevent the system from automatically generating short file names , under these circumstances , The path pointed to by the environment variable will not have the corresponding short file name , So as to maintain its original long file name format .
If you are bolder , take TEMP/TMP The environment variable is set to a directory path with spaces and no corresponding short file name , Then you will find , Some parts of the system are not working properly . Please don't blame me for not reminding you .
summary
I opened my Win10, I didn't see the short file name mentioned in the article .
Maybe it's because those old operating systems have gone with the river .
Last
Raymond Chen Of 《The Old New Thing》 It's one of my favorite blogs , There's a lot about Windows Little knowledge , For the vast Windows For platform developers , It's really helpful .
This article is from :《Why does the system convert TEMP to a short file name?》
边栏推荐
- [leetcode] 877 stone game
- LeetCode刷题——去除重复字母#316#Medium
- How to intercept the value of a key from the JSON string returned by wechat?
- 6096. 咒语和药水的成功对数
- 【LeetCode】283-移动零
- LeetCode刷题——两整数之和#371#Medium
- 2022 年辽宁省大学生数学建模A、B、C题(相关论文及模型程序代码网盘下载)
- (Video + graphic) machine learning introduction series - Chapter 5 machine learning practice
- [leetcode] 876 intermediate node of linked list
- MD5加密
猜你喜欢
Bing. Com website
[development environment] install the Chinese language pack for the 2013 version of visual studio community (install test agents 2013 | install visual studio 2013 simplified Chinese)
PTA 天梯赛习题集 L2-001 城市间紧急救援
Soul torture, what is AQS???
NBA player analysis
Leetcode question brushing - parity linked list 328 medium
Beijing rental data analysis
[salesforce] how to confirm your salesforce version?
Bing. Site Internet
【Salesforce】如何确认你的Salesforce版本?
随机推荐
2278. 字母在字符串中的百分比
Beijing rental data analysis
2279. 装满石头的背包的最大数量
彻底弄懂浏览器强缓存和协商缓存
LeetCode刷题——两整数之和#371#Medium
[leetcode] 417 - Pacific Atlantic current problem
密码学基础知识
[leetcode] 577 reverse word III in string
[salesforce] how to confirm your salesforce version?
LeetCode刷题——去除重复字母#316#Medium
全是精华的模电专题复习资料:基本放大电路知识点
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
03.golang初步使用
(5) Flink's table API and SQL update mode and Kafka connector case
02.面向容器化后,必须面对golang
Bing. Site Internet
【LeetCode】977-有序數組的平方
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
floyed「建议收藏」
2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)