Windows 10 显示桌面 快捷方式

powershell 代码 显示桌面图标

$shellApp = New-Object -ComObject shell.application
$shellApp.MinimizeAll()

BAT代码 在桌面生成一个快捷方式 显示桌面图标

@echo off
 echo Set oWS = WScript.CreateObject("WScript.Shell") > %temp%\shortcut.vbs
 echo sLinkFile = "%userprofile%\Desktop\Show Desktop.lnk" >> %temp%\shortcut.vbs
 echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %temp%\shortcut.vbs
 echo oLink.TargetPath = "explorer.exe" >> %temp%\shortcut.vbs
 echo oLink.Arguments = "shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}" >> %temp%\shortcut.vbs
 echo oLink.Save >> %temp%\shortcut.vbs
 cscript /nologo %temp%\shortcut.vbs
 del %temp%\shortcut.vbs
 echo Shortcut created on your desktop.
posted @ 2023-11-26 00:57  suv789  阅读(122)  评论(0编辑  收藏  举报