New
#1
Dir command gives unexpected / unwanted results
If I open a command prompt window and give the command " dir *.xls", I also get all xlsm, xlsx, xlsq etc files. This behaviour is unwanted and illogical. it makes scripting hopelessly complex and unreliable. If I wanted those files, I would issue a "dir *.xls?" command.
For the record: *.xlsq is NOT an existing Excel extension. I created an empty file with that extension to test this behaviour.
Issuing the command "dir *.xl" gives me no results.
Is there any way to make Windows list only .xls files, and not .xls? files?
I suppose the same applies to Word and PowerPoint files. I have not tested this yet.