怎么用cmd删除回收站文件?
2个回答
展开全部
以下代码复制粘贴到记事本,另存为xx.bat,编码选ANSI
<# :
cls
@echo off
rem 清空回收站
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
cd /d "%~dp0"
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 Recycle
{
[DllImportAttribute("shell32.dll")]
private static extern int SHEmptyRecycleBin(IntPtr handle, string root, int falgs);
public static void Clean(){
SHEmptyRecycleBin(IntPtr.Zero, "", 0x1);
}
}
'@;
Add-Type -TypeDefinition $codes
[Recycle]::Clean();
<# :
cls
@echo off
rem 清空回收站
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
cd /d "%~dp0"
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 Recycle
{
[DllImportAttribute("shell32.dll")]
private static extern int SHEmptyRecycleBin(IntPtr handle, string root, int falgs);
public static void Clean(){
SHEmptyRecycleBin(IntPtr.Zero, "", 0x1);
}
}
'@;
Add-Type -TypeDefinition $codes
[Recycle]::Clean();
2020-09-18 · 电脑数据恢复软件,数据管理专家
关注
展开全部
嗨格式数据恢复大师是一款强大、界面简洁、操作简单的数据恢复软件。支持恢复误删除硬盘文件、误格式化磁盘、误删除U盘/储存卡数据、误清空回收站文件、以及硬盘分区消失后的硬盘文件。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询