怎么更改桌面路径

2024-11-22 04:09:54
推荐回答(4个)
回答1:

第1步,单击“开始→运行”,输入“regedit”,打开注册表编辑器。
  第2步,依次展开注册表里的[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders],在其下找到desktopq键,双击打开,将其值修改为桌面的路径,比如把桌面放到D盘“桌面”文件夹下,就将其值设置为“D:\桌面”就可以了,关闭注册表编辑器。
  第3步,重新启动计算机即可。

回答2:

以下代码复制粘贴到记事本,另存为xx.bat,编码选ANSI
@echo off
rem 更改桌面默认路径
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
set "newdesktop=D:\xxx\Desktop"
if not exist "%newdesktop%" (md "%newdesktop%"||(pause&exit))
if "%newdesktop:~-1%" equ "\" set "newdesktop=%newdesktop:~,-1%"
set "olddesktop="
>"%tmp%\v.v" echo;WSH.echo CreateObject("Wscript.Shell").SpecialFolders("Desktop"):WSH.Quit
for /f "delims=" %%a in ('cscript -nologo -e:vbscript "%tmp%\v.v"') do (
set "olddesktop=%%~a"
)
if not defined olddesktop (echo;Failed to get desktop path&pause&exit)
echo;Old="%olddesktop%"
echo;New="%newdesktop%"
echo;files moving……
xcopy "%olddesktop%" "%newdesktop%\" /e /y /q /h /r
set "regpath1=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
set "regpath2=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
reg add "%regpath1%" /v Desktop /t REG_SZ /d "%newdesktop%" /f
reg add "%regpath2%" /v Desktop /t REG_SZ /d "%newdesktop%" /f
echo;%#% +%$%%$%/%@% %z%
set /p input=restart the computer now?[y/n]:
if /i "%input%" equ "Y" (shutdown -r -t 8)
pause
exit

回答3:

回答4:

用360试试,点击功能大全,在电脑优化下有个C盘搬家,把可以搬家的软件搬到其他盘上。。。。。