Dos Commands

jimlance

Distinguished
Sep 25, 2009
8
0
18,510
In Windows 7, I have found erroneous results in executing DOS commands (DIR and MOVE) using the wildcard *.

A sample command is:

dir "42013*.LIC > "List 42013 LIC.txt"

This should make a list of all the files in the directory that begin with "42013".

But, I get additional files listed that do not begin with "42013" or even contain the sequence of numbers.

I am clueless at this stage!

Jim
 

jimlance

Distinguished
Sep 25, 2009
8
0
18,510


I tried your suggestion, and I can get the same erroneous results as before. Unfortunately, I can occasionally get the correct result. I just cannot predict when or why the result is reliable. I am giving up on the Windows 7 Wildcards, and will search for another method. Thanks for your input.
 

TRENDING THREADS