📄 del.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0049)http://www.hongen.com/pc/newer/os/dos/dos0205.htm -->
<HTML><HEAD><TITLE>洪恩在线 - DOS</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="del.files/home.css" rel=stylesheet><LINK href="del.files/tools.css"
rel=stylesheet>
<META
content=电脑,乐园,交互,教程,操作系统,DOS,命令,dir,cd,md,rd,copy,del,ren,type,format,diskcopy,deltree,mem,chkdsk,sys,path,edit
name=keywords>
<META content="MSHTML 6.00.2800.1561" name=GENERATOR></HEAD>
<BODY text=black bgColor=white leftMargin=0 topMargin=10 marginheight="10"
marginwidth="0"><!--顶部开始-->
<SCRIPT language=Javascript src="del.files/head.js"></SCRIPT>
<!--顶部结束-->
<TABLE height=20 cellSpacing=0 cellPadding=0 width=760 align=center border=0>
<TBODY>
<TR>
<TD class=p1 align=left bgColor=#e8e8e8 height=19><IMG height=8
src="del.files/blank.gif" width=12><FONT color=#ff9966>当前位置</FONT>:<A
class=under href="http://www.hongen.com/default.htm">洪恩在线</A> -> <A
class=under href="http://www.hongen.com/pc/index.htm">电脑乐园</A> ->
DOS</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
<TBODY>
<TR>
<TD height=15></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
<TBODY>
<TR>
<TD class=p1 style="COLOR: blue" vAlign=top align=left width=145
bgColor=#e8e8e8><IMG height=10 src="del.files/blank.gif" width=1
align=center><BR>
<TABLE borderColor=#f8ac0e height=20 cellSpacing=0 cellPadding=0 width=128
align=left border=0>
<TBODY>
<TR vAlign=center bgColor=#000099>
<TD class=p2 align=middle width=115><B><FONT
color=#ffffff>DOS</FONT></B></TD>
<TD width=13 bgColor=#e8e8e8 height=20><IMG height=20
src="del.files/title_00.gif" width=13></TD></TR></TBODY></TABLE>
<P style="LINE-HEIGHT: 17pt" align=left> </P>
<P style="LINE-HEIGHT: 17pt"> 一 <SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0101.htm">DOS概述及入门</A></SPAN><BR> 二
<SPAN class=p1>DOS的常用命令</SPAN><BR> ※ <SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0201.htm">dir</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0202.htm">cd</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0203.htm">md和rd</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0204.htm">copy</A></SPAN><BR> ※
<SPAN class=p1>del</SPAN><BR> ※ <SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0206.htm">ren和type</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0207.htm">format</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0208.htm">diskcopy</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0209.htm">deltree和mem</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0210.htm">chkdsk</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0211.htm">sys</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0212.htm">path</A></SPAN><BR> ※
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0213.htm">edit</A></SPAN><BR> 三
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0301.htm">DOS命令集锦</A></SPAN><BR> 四
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0401.htm">使用批处理文件</A></SPAN><BR> 五
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0501.htm">如何进行系统配置</A></SPAN><BR> 六
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0601.htm">出错提示与对策</A></SPAN><BR> 七
<SPAN class=p1><A
href="http://www.hongen.com/pc/newer/os/dos/dos0701.htm">其它</A></SPAN>
<P style="LINE-HEIGHT: 17pt" align=center><BR><BR>
<P class=p1 align=center><A
href="http://www.hongen.com/pc/bin/msg.pl?file_id=dos_1" target=_blank
traget="_black"><IMG height=54 alt=请您留言 src="del.files/message.gif"
width=64 border=0><BR>谈谈您的看法</A> <BR>
<SCRIPT language=javascript>speak_num="za"</SCRIPT>
<SCRIPT language=javascript src=""></SCRIPT>
<SCRIPT language=javascript>var num=0if (!isNaN(speak_num)){ num=speak_num;}else{ num=0}document.writeln ("已有")document.writeln (num)document.writeln ("条发言")</SCRIPT>
</P>
<P style="LINE-HEIGHT: 17pt" align=center><BR> <BR> </P></TD>
<TD width=1 bgColor=#0586d7 height=304><IMG height=1
src="del.files/blank.gif" width=1> </TD>
<TD vAlign=top width=614 background=del.files/line.gif bgColor=#ffffff>
<TABLE width="95%" align=center border=0>
<TBODY>
<TR>
<TD>
<P align=center><BR><B class=p3>DOS 常用命令</B></P>
<P> ——del
<DIV class=p2 style="LINE-HEIGHT: 17pt">
<P> del即delete(删除)的缩写,显然它的作用就是“干破坏”删除文件。</P>
<P> 复制文件有点复杂,删除文件就很简单了。你看,如果我要删除a.bat文件,输入<FONT
color=#0000ff>del a.bat</FONT>就可以完成任务。</P>
<P align=center><IMG height=74 alt="命令:del a.bat"
src="del.files/dos0211.gif" width=419></P>
<P> 简单吧,del命令的格式就是如此简单:<FONT color=#0000ff>del 文件名</FONT>。
要删除当前目录中的某个文件,输入del空格再加上文件名就可以了。现在你可以试着试删除不要的废文件了。</P>
<P> 要删除一类文件,可以使用通配符。例如del *.tmp,就是把所有扩展名是tmp的文件都删除。</P>
<P align=center><IMG height=55 alt="命令:del *.tmp"
src="del.files/dos0212.gif" width=419></P>
<P> 你也可以删除当前目录中的所有文件,命令很简单:<FONT color=#0000ff>del *.*</FONT>或<FONT
color=#0000ff>del .</FONT>。</P>
<P align=center><IMG height=41 alt="命令:del *.*"
src="del.files/dos0213.gif" width=419></P>
<P> 这时计算机会告诉你此目录的所有文件都将被删除,同时问你是否继续,</P>
<P align=center><IMG height=87 alt="确认 del *.*"
src="del.files/dos0214.gif" width=419></P>
<P> 如果你不想删除,输入n(no),如果你确实要删除,输入y(yes)。</P>
<P> del *.*或del .一般用于在删除子目录之前,先删除目录中的所有文件。(记住,初学者慎用)</P>
<P> del命令还可以删除非当前目录中的文件,例如del
a:\bmp\sea.bmp,就是把A盘上bmp目录下的sea.bmp文件删除。你可以试着删除C盘temp目录内的所有文件,正确方法是输入del
c:\temp\. 或 del c:\temp\*.*,然后再输入y。 </P>
<P> 删除无用的文件,可以使磁盘的可利用空间增大。但在删除文件之前,你最好知道此文件的用途,确定没有用之后,才可以删除,否则追悔莫及。尤其使用del .和del *.*时要更加注意,因为一个目录中的文件都将被删除。
</P></DIV></TD></TR></TBODY></TABLE>
<P align=center> </P>
<P class=p1 align=center><A
href="http://www.hongen.com/pc/newer/os/dos/dos0204.htm">上一节</A> <A
href="http://www.hongen.com/pc/newer/os/dos/dos0206.htm">下一节</A></P>
<P class=p2 align=center><A
href="http://www.hongen.com/pc/bin/msg.pl?file_id=dos_1"
target=_blank><IMG height=54 alt=请您留言 src="del.files/message.gif" width=64
border=0><BR>谈谈您的看法</A>
<SCRIPT language=javascript>speak_num="za"</SCRIPT>
<SCRIPT language=javascript src=""></SCRIPT>
<SCRIPT language=javascript>var num=0if (!isNaN(speak_num)){ num=speak_num;}else{ num=0}document.writeln ("已有")document.writeln (num)document.writeln ("条发言")</SCRIPT>
</P>
<P> </P></TD></TR></TBODY></TABLE><!--底部开始-->
<SCRIPT language=Javascript src="del.files/foot.js"></SCRIPT>
<!--底部结束--></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -