OK try this:
Make a batch file which does something like (substitute your mame path etc.):
c:
cd\mame
mame > temp
exit
Then run the batch file *before* MAMEWAH for the first time after boot-up.
If it doesn't work 1st time, delete the contents of the \Files folder, reboot and try again. Please let me know how it goes...