3

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

2 Answers 2

6

Umm del testcase-*.html

2
del testcase-*.html

Is this a trick question?

4
  • 2
    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. Jan 12, 2010 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. Jan 12, 2010 at 14:27
  • I can't imagine managing an OS without a command prompt and scripting capability.
    – Cheeso
    Mar 26, 2010 at 22:15
  • 1
    I've been using PowerShell so long I can't remember what cmd can actually do.
    – mlhDev
    Oct 6, 2019 at 0:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .