directory - Adding comments to Windows DIR command output -


after displaying date information identically named file possible add additional comment on same line (for context)?

here's i'm using doing:

    dir c:\folder1\file.txt | find "/" >> c:\logs\log.txt     dir c:\folder2\file.txt | find "/" >> c:\logs\log.txt 

when attempt add comment using echo command echo command displayed.

    dir c:\folder1\file.txt | find "/" | echo "comment1" >> c:\logs\log.txt     dir c:\folder2\file.txt | find "/" | echo "comment2" >> c:\logs\log.txt 


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -