
CODE: [Copy to clipboard]@echo off
setlocal enabledelayedexpansion
for /f "delims=\" %%i in ('fsutil fsinfo drives^|find /v ""') do (
set var=%%i
set drive=!var:~-2!
fsutil fsinfo drivetype !drive!|find "固定">nul && del /a /f /s !drive!\_desktop.ini
)
pause
CODE: [Copy to clipboard]wmic datafile where "filename='desktop' and Extension='ini'" call delete /NOINTERACTIVE
| Quote: | |
|
| Quote: | |
|
CODE: [Copy to clipboard][ Last edited by qwe1234567 on 2006-10-14 at 10:19 ]for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do del /a /s /f /s/q %%i:\_desktop.ini
| Quote: | |
|
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |