I'm admittedly new to using batch commands so i'm not sure if this is at all possible, if it isn't please let me know. Recently I made a simple batch command to list the directories of all files ending in .exe and out putting it into a text file i'm calling testpaths.txt
dir C:\*.exe /s /b >> testpaths.txt
This command works as intended and lists the entire directory like this
What I am looking to do is to write a script searching this document and separating for lack of a better term the part of the string that says *.exe so it looks like
I am totally lost as to where or how I could even accomplish this as I am brand new to this. Any help would be very much appreciated, thank you!