How to start program from subfolder
OS Linux, C programming
I have one folder itTestMenu in which are folders with programs. In program folders are executable files like a.out and similar. So main folder is a menu in which are subfolders where are programs that you choose from menu are located. I would just like to ask you how to write path of those programs that would just check subfolder of that name and executable file - that I wouldn't write path from whole system. If I transfer program(menu folder) to other location paths wont be right and programs from menu won't start, so I would like that no matter where the location of menu folder is it always checks the subfolder with that name and executable file ,so you can move folder and programs always start. Please help.
Have a nice Day