[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
大家偶尔在删除某一个文件或者文件夹时,一直删除一直删除不掉,反复提醒你 “ 需要管理员权限才能删除 ” ,是不是很恼火呢?
没错,我也经常遇到这个问题。
后来我找到了一个万能小妙招,目前遇到的基本都解决了,分享给你们啦啦啦~
步骤如下:
1. 打开记事本,内容如下:
DEL /F /A /Q \\?\%1RD /S /Q \\?\%1
2. 点击 “ 保存 ” ,另存到 桌面;
3. 将文件命名后缀改为“ bat ”,并点击确定;
4. 将需要删除的文件或者文件夹拖到刚刚命名后缀为“ bat ”上即可删除;
给大家看看我的啦~
在桌面时,它是这样的:
打开后,它是这样的:
大家如果觉得好用,可以放在桌面上,以备不时之需哦~
命令释义如下:
del 删除命令。
/F 强制删bai除只读文件。
/S 从所有du子目录删除指定文件。
/Q 安静模式zhi。删除全dao局通配符时,不要求确认。
%systemdrive% 系统文件夹,如C:\windows,有的朋友将系统装在D中,则表示D:\WINDOWS
*.tmp 指临时文件的通配符
全句意思是:强制删除系统文件夹下所有的格式为tmp的文件(哪怕文件是只读的),并且在删除时不用向用户询问是否继续或终止!
RD [/S] [/Q] [驱动器:]路径
/S 除目录本身外,还将删除指定目录下的所有子目录和
文件。用于删除目录树。
/Q 安静模式,加 /S 时,删除目录树结构不再要求确认
因为这个,我简直粉上了Linux~