dos或fso或rm或其他任何东西!帮助 [英] dos or fso or rm or anything! help
问题描述
好的,这就是我所需要的.
说我有基本目录,里面有25个目录,这些目录中的其他目录介于1到50个之间,还有许多其他目录.等等:)
ok here''s what I have and what I need.
say I have base directory and in it there are say 25 directories and in those directories are between 1 and 50 other directories and in those many others. etc ect :)
BaseDir
Dir1
subdir 1
subdir 2
Dir2
subdir 1
Dir3
subdir 1
subdir 2
subdir 3
我需要删除subdir x以外的任何内容
它们只是目录而没有文件
它可以是fso或dos批处理命令,也可以是大多数nix命令[通过cygwin,所以awk,grep,无论什么都不是不可能的]
我已经尝试了循环,但仍然失败了.
请在接下来的几天中帮助我入睡.
I need to delete anything beyond subdir x
they are just directories and no files
it can be fso or a dos batch command or most nix commands [via cygwin, so awk,grep,whatever is not out of the question]
I have tried loops and whatnot and I still end up just cursing.
please help me get some sleep in the next couple of days.
推荐答案
del /s *.*
rm -rf *
等等.
那是非常有帮助的.不是
我知道该怎么做,我需要的是某种可以自动执行的脚本.
that was extremely helpfull. NOT
I know how to do all that what I needed was some kind of script that would do it automatically.
这篇关于dos或fso或rm或其他任何东西!帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!