dos下刪除文件夾和文件的方法
更新時間:2007年01月08日 00:00:00 作者:
在dos下刪除文件夾或文件,先要確定文件夾或文件是否有特殊的屬性,比如“系統(tǒng)”、“只讀”、“隱藏”,如果有,去掉這些屬性,命令如下
文件夾: attrib c:\windows -s -r -h
文件:attrib -s -h -r c:\windows\autorun.inf
刪除命令如下,
刪除文件夾(空):rd c:\windows
刪除文件:del c:\windows\autorun.inf
注:如果是當前路徑下操作,可以省略路徑。如:rd 新建文件夾 或 del 新建文件.txt
文件夾: attrib c:\windows -s -r -h
文件:attrib -s -h -r c:\windows\autorun.inf
刪除命令如下,
刪除文件夾(空):rd c:\windows
刪除文件:del c:\windows\autorun.inf
注:如果是當前路徑下操作,可以省略路徑。如:rd 新建文件夾 或 del 新建文件.txt
相關(guān)文章
批處理完美實現(xiàn)FTP遠程備份數(shù)據(jù)
本文給大家分享的是實現(xiàn)使用FTP遠程備份數(shù)據(jù)到本地的批處理腳本,非常的簡單實用,有需要的小伙伴可以參考下。2015-09-09

