Help with an m3u playlist button

Is there already an M3U in the folder?

Do you hare write access to the folder?

What happens if you run this version:

<?xml version="1.0"?>
<button display="both">
	<label>Test</label>
	<icon1>48</icon1>
	<function type="batch">
		<instruction>@NOFILENAMEQUOTING</instruction>
		<instruction>Select PATTERN *.(mp3|ogg|flac|aac|wma) DESELECTNOMATCH</instruction>
		<instruction>Echo #EXTM3U_&quot;{sourcepath$|nopath|noterm}.m3u&quot;</instruction>
		<instruction>Echo {file$}__&quot;{sourcepath$|nopath|noterm}.m3u&quot;</instruction>
		<instruction>pause</instruction>
	</function>
</button>

It should open a window and print some filenames (with some stuff after them).