delete the file,you can see the document about del and rd
del
:delete
del [drive:][path:]
parameters:
/p before delete file ,will give you words
/f must del read only file
/s del all files from child tree
/q no voice envirment
/a with attributes:/r read only file
/s system file
/h hide file
/a save file
rd
:remove directory
cmd
rd [driver:][path:] enly del the empty file
parameters
/s must del ,and will give you some permission
/q in novoice enviorment,
the example:
rd c:\pack\temp
rd c:\pack\temp /s
rd c:\pack\temp /q /s
fc:
for example,there are two txt files test_1.txt and test_2.txt,compare test_1 with test_2,and put the different place into a new txt file ,named test.txt
fc test_1.txt test_2.txt > test.txt
now ,ok,you will see the result in test.txt file
转载于:https://www.cnblogs.com/FollowIT/archive/2006/06/29/438302.html