On a windows server, using a DOS command, how can I delete files in the current directoy that have the pattern like:

  • testcase-234.html
  • testcase-2322.html
  • testcase-12.html

i.e. files that begin with testcase-xxx.html

link|improve this question

28% accept rate
feedback

2 Answers

up vote 2 down vote accepted

Umm del testcase-*.html

link|improve this answer
feedback

del testcase-*.html

Is this a trick question?

link|improve this answer
1  
You forget, it's been a very long time since the command prompt was actually required for use of an OS. It's quite possible that this user has honestly never had any use for it. – Mark Henderson Jan 12 '10 at 1:14
"it's been a very long time since the command prompt was actually required for use of an OS" - you might be surprised next time you try an Unix-based one. – grawity Jan 12 '10 at 14:27
I can't imagine managing an OS without a command prompt and scripting capability. – Cheeso Mar 26 '10 at 22:15
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.