file.txt:
C:\\Program Files\\Folder\\file.exe
Can be .exe, .dll, etc.
Output Goal:
C:\\Program Files\\Folder