The DEL command: OS/2 syntax
Use the ERASE or DEL command to delete one or more files.
Syntax:
DEL
[
drive
:][
path
]
filename
[/P] [/N] [/F]
ERASE
[
drive
:][
path
]
filename
[/P] [/N] [/F]
where:
drive:\path\filename
Specifies the file to delete. Global file name characters * and ? can be used in the file name specified.
/P
Prompts for confirmation before deleting each file.
/N
Prevents the message "Are you sure (Y/N)?" from being displayed as files are deleted.
/F
Permanently deletes a file. (The file cannot be recovered with the UNDELETE command.)
Related Stuff
Download
DELDIR.CMD
or
DELTREE.EXE
, two DELTREE replacements for OS/2.
MS-DOS'
DEL
command.
MS-DOS'
DELTREE
command deletes entire directory trees.
The
DEL
command in Windows NT 4 and later.
In Windows NT 4 and later, use
RD /S [/Q]
instead of DELTREE.
Recycle.vbs
sends the contents of a
folder
to the Recycle Bin instead of truly deleting them.
In VBScript you can use my
DelTree
subroutine
.
DelAge
and DelOld (one
version by Hans-Georg Michna
and
one by Kees Hiemstra
) delete files older than a specified number of days.
MOVEEX (one
version by Alexander Frink
and
one by Frank Westlake
) schedules files that are in use, like system DLLs, to be removed at the next reboot.
How to
empty Windows' Recycle Bin
.
How to
remove Windows' temporary files and clear Internet Explorer's cache
.
Home
Batch files
KiXtart
Perl
PowerShell
Regular Expressions
Rexx
WSH
Recommended Reading