As a first approximation, you could use re.finditer
to find things that might be paths. The example shown below might also match things which are not valid paths (and I'm not strong on the rules for paths on Windows, so you should test that this does what you want thoroughly):
contents = inputFile.read()
for path in re.finditer("(C:\\.*?\.exe)", contents):
print path