以下代码复制粘贴到记事本,另存为xx.bat,编码选ANSI
<# :
cls
@璐村惂鐢ㄦ埛_000076K馃惥 off
rem 隐藏桌面图标
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%
@璐村惂鐢ㄦ埛_053Q95e馃惥 %z%
powershell -NoProfile -ExecutionPolicy bypass "[IO.File]::ReadAllText('%~f0',[Text.Encoding]::Default)|Invoke-Expression"
echo;%#% +%$%%$%/%@% %z%
pause
exit
#>
$codes=@'
using System;
using System.Runtime.InteropServices;
public static class pcl
{
[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
[DllImport("user32.dll", SetLastError=true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
public static void HideDesktopIcons(){
IntPtr h1=FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Progman", "Program Manager");
IntPtr h2=FindWindowEx(h1, IntPtr.Zero, "SHELLDLL_DefView", null);
IntPtr h3=FindWindowEx(h2, IntPtr.Zero, "SysListView32","FolderView");
ShowWindow(h3, 0);
}
}
'@;
Add-Type -TypeDefinition $codes
[pcl]::HideDesktopIcons();