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.

  [DELETED] 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

HTC U12 Plus review: Hands-on

Frida Kahlo's life, art and legacy explored in Google's new giant online collection and app

Best Android emulators for Mac

Comment importer des contacts d’un iPhone à un autre iPhone ?