you have to set the path in the MAME.ini file you can do this either by editing the MAME.ini file with any text editor and adding your path. You can also do so from inside the MAME UI by simply opening the program and then going to configuration options then directories. After setting the directories back out of the menu and go to save configuration.