[<<]Message[>>] [<<]Author[>>] Subject[>>] Thread[>>]
Number : 1708 Date : 2002-03-01 Author : rotaiv Subject : Mixed results with Kan's WHERE.BAT Size(KB) : 1
--=====================_101485428==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Kan, I was practicing with your infamous WHERE.BAT and I was trying to list all the "SendTo" directories in the NT profiles directory. I eventually figured out the following works: where c:\winnt\*\send*\ /ltree However, in the course of my experimenting, I tried this: where c:\winnt\*\send* /ltree Not only did it not work, I have no idea why I got the results I did! Obviously, it has to do with the "/" at the end of the file spec but why did I see "ALL" directories? Here is the contents of the batch file: @xxcopy /lzdl/s/h %* Note - I got lazy and used "%*" instead of listing each of the nine parameters ;) rotaiv. --=====================_101485428==_.ALT Content-Type: text/html; charset="us-ascii" Kan, I was practicing with your infamous WHERE.BAT and I was trying to list all the "SendTo" directories in the NT profiles directory. I eventually figured out the following works: where c:\winnt\*\send*\ /ltree However, in the course of my experimenting, I tried this: where c:\winnt\*\send* /ltree Not only did it not work, I have no idea why I got the results I did! Obviously, it has to do with the "/" at the end of the file spec but why did I see "ALL" directories? Here is the contents of the batch file: @xxcopy /lzdl/s/h %* Note - I got lazy and used "%*" instead of listing each of the nine parameters ;) rotaiv. --=====================_101485428==_.ALT--