Jethro_, I'm not looking to start a little comment war here, but that wasn't harsh the way I see it. The rules say you need to make sure your snippet it working properly. I didn't mean to come off as a bit of an ass but when you post comments like that saying, I didn't test it and so forth are uncalled for. Simply asking what I was talking about would have been a little better.
As Jethro_ said, you need to add a .txt after your file name or it will be saved in the wrong format. Your Windows may have found and read the file fine but mine gave me an error. As for the blank space in the echo message it might be because your trying to use the variable %y when you never set it, a simple fix.