mportant; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; inset: auto !important; float: none !important; line-height: 1.1em !important; outline: 0px !important; overflow: visible !important; position: static !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; min-height: auto !important; margin: 0px !important; padding: 0px 1em !important;">
@
echo
off
for
/f
"tokens=2,*"
%%i
in
(
'reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Desktop"'
)
do
Set a=%%j
echo
你当前桌面路径是:%a%
pause
rem 下面是修改桌面路径
set
"a=D:\桌面"
reg add
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
/v
"Desktop"
/t
REG_SZ
/d
%a%
pause
如果是XP
set d=%USERPROFILE%\桌面
如果是W7
set d=%USERPROFILE%\desktop
即可
set d=%USERPROFILE%\桌面
如果是W7
set d=%USERPROFILE%\desktop
即可
本文链接:https://www.kinber.cn/post/2655.html 转载需授权!
推荐本站淘宝优惠价购买喜欢的宝贝: