Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Umm del testcase-*.html

share|improve this answer

del testcase-*.html

Is this a trick question?

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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