in reply to Directory
It looks like you are leaving the newline on the end of $label, which isn't an allowed character in a file name under Win32.