Command Prompt for Windows




Command DELBUT

Function:

Deletes all files except the files specified.

Syntax:

DELBUT [drive:][path]filename1 [filename2] [...] [/P]
[drive:][path]Specifies the drive and path where the file(s) can be found.
filename1, ...Specifies the file(s) NOT to delete.
/PPrompts for confirmation before deleting each file.

Note:

Also see command DEL.

Example on using DELBUT.