Open .egp file located in different folders

Hello Everyone,
I am trying to open .egp files from different locations. I need to build a use case that has to look for .egp files from multiple locations, open SAS application, and copy the entire code in a notepad and rename the notepad with that program name, and close. Do the same process until all of the .egp files are copied in notepad.

FYI - I have listed all the .egp file locations in excel. Using Win+R to get into each location. I am not understanding how the same file with locations can be used to open the sas application.

Thanks for all your help in advance!!