Hey I am trying to build a robot that simply reads an Excel file. Now I want to share this robot with a coworker, I am sharing the whole project with the Excel file inside.
Problem is, I have to hardcode the Excel file path to read it and this path will probably be different when my coworker downloads it.
You can create a configuration file, where you can store the path of all the files you are working on with.
Have a look on this thread it will help you out.
You can also use Environment.CurrentDirectory() method as long as the Excel file is in your project folder. This methods delivers the path to your project folder.