DOS command question

  remind 17:04 16 Apr 2006

Does anybody know if there's a way of using wildcards to select `all files except` as it were.
For example, if I had folder full of text files, and I only wanted to keep files starting with `a`, how would I achieve that with one command rather than typing del b*.txt, del c*.txt, del d*.txt etc?

  Sibbo 17:32 16 Apr 2006

A question mark can be used as a wild card for a specific character.

  Marsh Warden © ™ 17:33 16 Apr 2006

I've had a look here click here and I'm not sure if it's possible. Look under "All DOS Commands" and the DEL command and the given examples.

  remind 17:38 16 Apr 2006

Thanks both; looks as though the only way is make the files i want read-only, run the *.txt command then unset the read-only bit. Thanks for suggestions.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

AMD Radeon Adrenalin release date, new features, compatible graphics cards

Turn a photo into 16-bit pixel art

iMac Pro release date, UK price & specs

Comment suivre le parcours du père Noël ?