English 中文(简体)
如何删除窗户中的指定名录
原标题:How to delete specified directory in windows dos command
  • 时间:2011-11-22 05:30:10
  •  标签:
  • dos

在气温系统中,我们利用以下指挥系统删除现有目录中的“svn”目录,并登入目录。

find . -name .svn -print0 | xargs -0 rm -rf

Then, which command could we use to do the same function? thanks.

问题回答

您可以尝试制作新的批量档案,并在其中撰写以下法典:

for /f "tokens=* delims=" %%i in ( dir /s /b /a:d *svn ) do (
  rd /s /q "%%i"
)

它将重新删除。

You can use rmdir command at command prompt to delete the dir put /s for subdirectories Like: rmdir c:.svn /s

刚刚开始指挥,当时由行政长官执行指挥。

供参考:

Syntax: rmdir [Drive:]Path [/s] [/q] rd [Drive:]Path [/s] [/q]

Parameters [Drive:]Path : Specifies the location and name of the directory that you want to delete. /s : Removes the specified directory and all subdirectories including any files. Use /s to remove a tree. /q : Runs rmdir in quiet mode. Deletes directories without confirmation. /? : Displays help at the command prompt.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rmdir.mspx?mfr=true”rel=“nofollow”http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rmdir.mspx?mfr=true





相关问题
Compilers for DOS32?

Where can I get BASIC and C/C++ Compilers for MS-DOS?

GUI paradigm history

I know that Apple and Microsoft were inspired by Xerox PARC in building the GUI, but my question is: from the hardware point of view, which was the switch to GUI become available? I remember that I ve ...

Batch File to Delete Folders

I found some code to delete folders, in this case deleting all but n # of folders. I created 10 test folders, plus 1 that was already there. I want to delete all but 4. The code works, it leaves 4 ...

Help with DOS script (grab specific data from a file)

I need to grab just the md5 value from a file and make it a variable which I can use to compare to another md5 value. The problem is this file looks like this: a7393f772e34ca16a5854e80d9ec6704 md5 ...

DOS Database - help needed to recognize what is it

today I got a copy of an old system from which I need to import data. The system is written in C and runs in DOS. It uses some kind of database. The file format seems to be rather simple(1 file = 1 ...

View ram in DOS

Is there a way in dos (im using a dos boot disk on a linux machine) to view portions of ram? ie. some form of command to read the binary at a given address? edit: my bootable floppy doesnt have ...

Lynx removes newline characters from post_data input

I am trying to post a file to a URL via the MS-DOS command prompt. I am using the Lynx browser to do this. I am able to post my file just fine, but all of the newline characters are removed by Lynx ...

热门标签