DOS command question

  remind 17:04 16 Apr 2006
Locked

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

OnePlus 5T review: Hands-on

Illustrator Andrés Lozano on his improv line work, brazen use of colours & hand sketching

iPhone X review

Comment envoyer gratuitement des gros fichiers ?