I have a moh directory with about 20 wav files . is there a method the caller can use to skip to next song or prevous?

how would I implement this in a directory

with known file names?

with unknown file names ending in .wav?