Okay, what the heck is going on here? (DOS Dir command)

Posted by: tfabris

Okay, what the heck is going on here? (DOS Dir command) - 27/05/2016 19:29

I expect a log file to show up in a certain folder. It's not showing in Explorer, and it's not showing if I DIR *.LOG in the folder. But if I go up a few levels, then it shows in a DIR /S.

Observe this output from my elevated DOS session:

Code:

C:\Users\AFabris\Source\Workspaces\SendBus\Development\TaskScheduler\ProcessSalesEmailsTask\bin\Debug>dir /s *.log
 Volume in drive C is Windows
 Volume Serial Number is 56E5-5398
File Not Found

C:\Users\AFabris\Source\Workspaces\SendBus\Development\TaskScheduler\ProcessSalesEmailsTask\bin\Debug>cd ..

C:\Users\AFabris\Source\Workspaces\SendBus\Development\TaskScheduler\ProcessSalesEmailsTask\bin>dir /s *.log
 Volume in drive C is Windows
 Volume Serial Number is 56E5-5398
File Not Found

C:\Users\AFabris\Source\Workspaces\SendBus\Development\TaskScheduler\ProcessSalesEmailsTask\bin>cd ..

C:\Users\AFabris\Source\Workspaces\SendBus\Development\TaskScheduler\ProcessSalesEmailsTask>dir /s *.log
 Volume in drive C is Windows
 Volume Serial Number is 56E5-5398
File Not Found

C:\Users\AFabris\Source\Workspaces\SendBus\Development\TaskScheduler\ProcessSalesEmailsTask>cd ..

C:\Users\AFabris\Source\Workspaces\SendBus\Development\TaskScheduler>dir /s *.log
 Volume in drive C is Windows
 Volume Serial Number is 56E5-5398

 Directory of C:\Users\AFabris\Source\Workspaces\SendBus\Development\TaskScheduler\ProcessSalesEmailTests\bin\Debug

05/27/2016  12:15 PM            21,112 ProcessSalesEmailTests Temporary Local Log File.log
               1 File(s)         21,112 bytes

 Directory of C:\Users\AFabris\Source\Workspaces\SendBus\Development\TaskScheduler\SaApiVerification\bin\Debug

02/29/2016  11:00 AM            15,339 SaApiVerification Temporary Local Log File.log
               1 File(s)         15,339 bytes

 Directory of C:\Users\AFabris\Source\Workspaces\SendBus\Development\TaskScheduler\SmtpLogicProcessingEmailTest\bin\Debug

10/22/2015  12:56 PM                12 SmtpLogicProcessingEmailTest Temporary Local Log File.log
               1 File(s)             12 bytes


WHAT THE HECK?

Why doesn't the file appear until I've moved up a few directory levels?!?!?!?

This isn't a timing thing, this is consistent. File is not flagged as "hidden" or "system" anthing that I know about.

WTF?
Posted by: Tim

Re: Okay, what the heck is going on here? (DOS Dir command) - 27/05/2016 19:48

The log files it is finding aren't in ProcessSalesEmailsTask, they are in ProcessSalesEmailTests.
Posted by: tfabris

Re: Okay, what the heck is going on here? (DOS Dir command) - 27/05/2016 20:29

BLAST. I typoed the dir name because it was similar.

And I *knew* there were two similar dir names and I even compared them side by side and I STILL MISSED IT.

WOW.