It's because you didn't specify the output directory, just the name of the output file. You need to provide a full path like
But the method is a bit of overkillCode:C:\Users\Jason\Documents\myMp3.mp3
Try this:
[php]
IO.File.WriteAllBytes("pathhere", My.Resources.ResourceName)
[/php]