Here what I think is happening. You run this with /S option (for recursive directory processing) and somehow only files from the main directory get written to the log, probably because FileDir calls itself recursively for subdirectories. Try creating a batch file containing 1 line C:\temp\24x7\FileDir.exe /N /F /A 365 /O /S C:\*.* and then calling the batch with output redirection to a log file. : I am using the FileDir command to generate a list of files over a year old. : When I pipe the output to a text file we only capture 266 lines of data. If : we simply disply the results to the screen we see several hundred lines : more of data. : C:\temp\24x7\FileDir.exe /N /F /A 365 /O /S C:\*.* > C:\temp\24x7\list.txt : I have tried redirecting the output to a different drive with the same : results. : Your suggestions are appreciated. : ~Joe
|