当前位置:网站首页>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?》

边栏推荐
- Thoroughly understand browser strong cache and negotiation cache
- 党史纪实主题公益数字文创产品正式上线
- Pytoch saves tensor to Mat file
- beforeEach
- 04. Some thoughts on enterprise application construction after entering cloud native
- 终于搞懂了JS中的事件循环,同步/异步,微任务/宏任务,运行机制(附笔试题)
- 2278. Percentage of letters in string
- 【LeetCode】977-有序數組的平方
- /bin/ld: 找不到 -lxml2
- The task cannot be submitted after the installation of flick is completed
猜你喜欢

XPT2046 四线电阻式触摸屏

Two traversal sequences are known to construct binary trees
![[salesforce] how to confirm your salesforce version?](/img/ce/4c844b1b686397faa1b6aa3d57e034.png)
[salesforce] how to confirm your salesforce version?
![[leetcode] 1905 statistics sub Island](/img/82/d2f7b829f5beb7f9f1eabe8d101ecb.png)
[leetcode] 1905 statistics sub Island

使用 percona 工具给 MySQL 表加字段中断后该如何操作
![[leetcode] 1162 map analysis](/img/9a/d04bde0417d4d5232950a4e260eb91.png)
[leetcode] 1162 map analysis

Storage read-write speed and network measurement based on rz/g2l | ok-g2ld-c development board
![[leetcode] 417 - Pacific Atlantic current problem](/img/30/c541bc1e81eb4e348ca11116a05e84.png)
[leetcode] 417 - Pacific Atlantic current problem

Solve the problem of frequent interruption of mobaxterm remote connection

《大学“电路分析基础”课程实验合集.实验五》丨线性有源二端网络等效电路的研究
随机推荐
College entrance examination score line climbing
Leetcode skimming -- verifying the preorder serialization of binary tree # 331 # medium
Jsp+mysql006 community management system
Cultural scores of summer college entrance examination
彻底弄懂浏览器强缓存和协商缓存
NBA player analysis
02. After containerization, you must face golang
使用 percona 工具给 MySQL 表加字段中断后该如何操作
[leetcode] 486 predict winners
Storage read-write speed and network measurement based on rz/g2l | ok-g2ld-c development board
已知两种遍历序列构造二叉树
Leetcode skimming -- sum of two integers 371 medium
Fiddler实现手机抓包——入门
《大学“电路分析基础”课程实验合集.实验五》丨线性有源二端网络等效电路的研究
College entrance examination admission score line crawler
终于搞懂了JS中的事件循环,同步/异步,微任务/宏任务,运行机制(附笔试题)
[leetcode] 577 reverse word III in string
动态规划入门一,队列的bfs(70.121.279.200)
【Leetcode】167-两数之和II -输入有序数组
提前批院校名称