我们可以只删除文件掩码中指定的文件吗? [英] Can we delete only files specified in the file mask?
本文介绍了我们可以只删除文件掩码中指定的文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
sDelete
仅删除文件掩码中指定的文件.我们可以这样做吗?
sDelete
with file mask option is to delete only files specified in the file mask. Can we do this?
推荐答案
让我们假设我有一个名为D:\ Test的目录,其中包含一些以"Index1"开头的文件,后跟其他一些字符.如果要安全删除这些文件,请执行以下操作:
Let''s assume I have a directory called D:\Test that contains some files starting with "Index1" followed by some other characters. If I wanted to securly delete those files I''d do this:
sdelete -p 10 D:\Test\Index1*
这将删除目录D:\ Test中以"Index1"开头的所有文件.如果要递归执行此操作,请添加命令行选项-s.
希望对您有帮助!
干杯!
This would delete all files in directory D:\Test that started with "Index1". If I wanted to do this recursively I''d add the command line option -s.
Hope that helps you!
Cheers!
这篇关于我们可以只删除文件掩码中指定的文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文