发布网友 发布时间:2024-10-20 11:53
共1个回答
热心网友 时间:2024-11-09 20:55
@echo off pushd %~dp0 rem 设置启动组路径 set startup=%ALLUSERSPROFILE%\「开始」菜单\程序\启动 set startup2=%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Startup if exist "%startup2%" set startup=%startup2% rem 获取桌面路径,以防桌面路径非默认时出错 set reg=HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders for /f "tokens=3*" %%a in ('reg query "%reg%" /v Desktop') do set desk=%%a rem 把桌面的腾讯QQ.lnk复制到开始菜单的启动组中 copy /y "%desk%\腾讯QQ.lnk" "%startup%\" >nul rem 把桌面的腾讯QQ.lnk复制到C盘的QQ文件夹 copy /y "%desk%\腾讯QQ.lnk" "C:\QQ\" >nul rem 把D盘的QQ文件夹复制到E盘 if not exist E:\QQ\ md E:\QQ\ xcop /s /y D:\QQ\*.* E:\QQ\*.* >nul