-
Delete the ABC folder on the entire hard drive.
echo off
for %%a in (c d e f) do (
cd /d %%a:\
for /r /d %%b in (*do if "%%~nxb"=="abc" rd /s /q "%%b"
pause is more concise if it only deletes the d drive.
echo off
for /d /r d:\ b in (*do if "%%~nxb"=="abc" rd /s /q "%%b"
pause executes a specific command for each file in a set of files.
for %variable in (set) do command [command-parameters]
variable specifies a single-letter replaceable parameter.
set) to specify a file or set of files. Wildcards can be used.
command specifies the command to be executed on each file.
command-parameters
Specify parameters or command-line switches for specific commands.
When using the for command in a batch file, use %%variable for variables to specify
Instead of %variable. Variable names are case-sensitive, so %i is different from %i
echo off
if "%~1"=="" exit /b
setlocal disabledelayedexpansion
set a=%*
setlocal enabledelayedexpansion
set a=!a:"=!
set a="!a: %d1=" "%~d1!"
setlocal disabledelayedexpansion
echo will completely delete the following files(s): echo
for %%in (%a%) do echo %%
echo & set p=[Cancel] please close directly, [Continue] press any key. .nul
for %%in (%a%) do "" -q -p 3 -s %%nul
set p=done! Press any key to exit. .nul
-
for /f "delims=" %%a in ('type ') do (
for /d /r %%b in (*do (>rd /s /q "%%b")
pause this is based on,Your supplementary question in the ** modification,Hehe,It's really a worthwhile trip.,Hehe,Thank you for ...... landlord.
-
The problem is simple, and if it's just read, it's even simpler.
echo off&color 0a
echo The following is what needs to be removed.
set p s=Select 1 if you just want to browse, press any key if you just want to delete!
if "%s%"=="1" (for /f "delims=" %%1 in ('type ')do echo %%1>> for /f "delims=" %%1 in ('type ')do del/f/q %%1
-
The system is Windows 2000
Suppose the existence directory is d: game d: **.
Request. Create a batch file, delete these folders and their contents at once, the deleted folder contains Chinese names, and the folder is not empty.
I used the deltree command, but there seems to be a problem with the deletion of Chinese names, and vbs can also be used.
-
<>2. Then hold down the Ctrl key and use the left mouse button to select multiple folders.
3. Then right-click the mouse and click on the "Delete" option in the context menu.
4. Then in the dialog box that appears, click the "Yes" button to regret it.
5. After completing the above settings, you can meet the requirements of the questioner.
-
<><3. Click on the scanning path, such as selecting E disk and F disk, and you can scan the duplicate files in the two disks. After selecting the E and F drives, click the arrows in the second red circle, and use the E and F drives as the paths to scan duplicate files.
4. Click Scan Now, and the duplicate files will appear in the form of a list.
5. In the selection assistant on the left, there are many rules to choose from. It is recommended to check "Mark all items in the same group and folder and keep one copy", "Oldest file in each group", and click File Delete to keep the latest file (duplicate old files are deleted).
1. Create a new folder on the computer, create a new "txt" file, and name it. >>>More
:** automatically creates catalogs based on the date they were last modified for categorization. >>>More
The operation to delete songs in iPod with iTunes is as follows: >>>More
echo off
del C: Windows System32 adds this batch to the startup of the menu. >>>More
UltraISO Floppy Pass is a powerful and convenient disc image file making conversion tool, which can directly extract ISO files and directories from ISO, as well as make disc images from CD-ROM or. >>>More