ERASE,是一個計算機命令,用於刪除檔案,適用於GECOS、TSS/360、CP-67/CMS、VM/CMS等作業系統。
基本介紹
GECOS
ERASE filedescr 1;filedescr 2;...;filedescr n
TSS360
ERASE [DSNAME=data set name[(member name)]][,SHARED={Y|N}]
CP-67CMS
意圖
格式
ERASE filename filetype < filemode >
* **
P
用法
注意
回響
例子
ERASE DLFAC MODULE P5
ERASE * LISTING
ERASE * * *
錯誤信息
E(00001) INVALID PARAMETER-LIST
E(00002) FILE SPECIFIED DOES NOT EXIST
E(00003)
VMCMS
ERASE filename filetype filemode
CPMPlus
語法
ERASE {filespec} {[CONFIRM]}
解釋
ERASE {d:}wildcard-filepsec
ERASE {d:}wildcard-filespec (Y/N)?
No File
例子
A>ERASE X.PAS
A>ERA *.PRN
ERASE*.PRN (Y/N)?Y
B>ERA A:MY*.* [CONFIRM]
A>ERA B:*.*
ERASE B:*.* (Y/N)?Y
FlexOS
ERASE filespec
ERASE filespec -Q
解釋
Are you sure (Y/N)? _
例子
A>ERASE MYFILE.1
A>ERASE B:*.*
Are you sure (Y/N)? Y
A>DEL B:/ACCOUNTS
Are you sure (Y/N)? Y
A>ERASE *.DAT -Q
FLPY0:LIST.DAT, delete (Y/N)? N
FLPY0:MARKET,DAT, delete (Y/N)? Y
FLPY0:REPORT.DAT, delete (Y/N)? Y
DOS
類型
語法
DEL (ERASE) [d:][path]filename [/P]
用途
論述
注意
del t*.*
例子
del b:\letters\letter3.txt
del *.*
Are you sure (Y/N)?
MS-DOS
ERASE [drive:][path]filename [/P]
Windows NT cmd.exe
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
- R:唯讀檔案
- S:系統檔案
- H:隱藏檔案
- A:準備存檔的檔案
- I:無內容索引檔案
- L:重新分析點
- O:脫機檔案
- -:表示“否”的前綴
Windows Powershell
名稱
語法
Remove-Item
[-Path] <String[]>
[-Filter <String>]
[-Include <String[]>]
[-Exclude <String[]>]
[-Recurse]
[-Force]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[-Stream <String[]>]
[<CommonParameters>]
Remove-Item
-LiteralPath <String[]>
[-Filter <String>]
[-Include <String[]>]
[-Exclude <String[]>]
[-Recurse]
[-Force]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[-Stream <String[]>]
[<CommonParameters>]
別名
相近的命令
ERASE {d:}wildcard-filepsec
ERASE {d:}wildcard-filespec (Y/N)?
No File
例子
A>ERASE X.PAS
A>ERA *.PRN
ERASE*.PRN (Y/N)?Y
B>ERA A:MY*.* [CONFIRM]
A>ERA B:*.*
ERASE B:*.* (Y/N)?Y
FlexOS
ERASE filespec
ERASE filespec -Q
解釋
Are you sure (Y/N)? _
例子
A>ERASE MYFILE.1
A>ERASE B:*.*
Are you sure (Y/N)? Y
A>DEL B:/ACCOUNTS
Are you sure (Y/N)? Y
A>ERASE *.DAT -Q
FLPY0:LIST.DAT, delete (Y/N)? N
FLPY0:MARKET,DAT, delete (Y/N)? Y
FLPY0:REPORT.DAT, delete (Y/N)? Y
DOS
類型
語法
DEL (ERASE) [d:][path]filename [/P]
用途
論述
注意
del t*.*
例子
del b:\letters\letter3.txt
del *.*
Are you sure (Y/N)?
MS-DOS
ERASE [drive:][path]filename [/P]
Windows NT cmd.exe
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
- R:唯讀檔案
- S:系統檔案
- H:隱藏檔案
- A:準備存檔的檔案
- I:無內容索引檔案
- L:重新分析點
- O:脫機檔案
- -:表示“否”的前綴
Windows Powershell
名稱
語法
Remove-Item
[-Path] <String[]>
[-Filter <String>]
[-Include <String[]>]
[-Exclude <String[]>]
[-Recurse]
[-Force]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[-Stream <String[]>]
[<CommonParameters>]
Remove-Item
-LiteralPath <String[]>
[-Filter <String>]
[-Include <String[]>]
[-Exclude <String[]>]
[-Recurse]
[-Force]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[-Stream <String[]>]
[<CommonParameters>]