@echo off select /h cd (?[!O]*) select /h k s (*;*.s;*.4c;*.gg;*.sx;*.gx;*.src;*.lib;*.ed) k bye cd -