中国DOS联盟论坛

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-07 03:30
48,040 topics / 350,125 posts / today 1 new / 48,252 members
DOS批处理 & 脚本技术(批处理室) » USERPROFILE system variable was changed!
Printable Version  595 / 0
Floor1 huahua0919 Posted 2008-01-03 19:25
银牌会员 Posts 780 Credits 1,608
A few days ago a friend told me that all the icons on his desktop were gone, and Outlook also wouldn't work, so I took a look. I found that there was only one user on his computer, Administrator. After entering set in CMD, I discovered that the environment variable
USERPROFILE had been changed. Originally it was:
USERPROFILE=C:\Documents and Settings\Administrator
After the change it became USERPROFILE=C:\Documents and Settings\Administrator.cn33;
C:\Documents and Settings\Administrator

cn33 is the computer name. The desktop ended up pointing to the folder with the computer-name suffix, which made the desktop completely empty!
Checking the system users still showed only one user!

I'd also like to ask everyone for some advice on this~!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023