💻 Software
MS-DOS command to delete all files except one
Fresh5 days ago
Mar 15, 202680908 viewsConfidence Score0%
0%
Problem
Is there an MS-DOS command that allows me to delete all files except one? Consider as an example the following files: Is there a command to delete all files except ?
Error Output
a.001 a.002 a.003 a.exe a.c
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: MS-DOS command to delete all files except one
Low Risk
You can use the and commands to accomplish this: This goes through the current directory, and compares each file name to a.c. If it doesn't match, the file is deleted.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix