![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 14:46 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Two questions about environment variables |
| Printable Version 642 / 3 |
| Floor1 azziporah | Posted 2009-09-03 23:02 |
| 初级用户 Posts 47 Credits 102 | |
|
In Vista/7 I see %TEMP% = %USERPROFILE%\AppData\Local\Temp
If the username is very long, for example try_a_very_long_name then when you output %TEMP% you'll see the username part turn into an 8.3 abbreviated form with "~" but if you directly echo %username% it is normal. Why is that? Also, what is %pathtem%? |
|
| Floor2 slore | Posted 2009-09-04 04:31 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
My understanding is that standalone username is just the user name, just a string, not a path name, so it won't be expanded according to the 8.3 rule.
That rule applies to paths. %pathtern% http://vistaonwindows.com/environment_variables.html Didn't find any explanation. |
|
| Floor3 523066680 | Posted 2009-09-04 04:36 |
| 银牌会员 Posts 1,133 Credits 2,362 | |
|
RE the poster above:
What the first post mentioned seems to be %pathtem%, not pathtern As for pathtem, it might be a temporary path ( I've never used it either. Just guessing, guessing, guessing) |
|
| Floor4 azziporah | Posted 2009-09-04 13:52 |
| 初级用户 Posts 47 Credits 102 | |
Originally posted by slore at 2009-9-4 04:31: |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |