Big oops, actually. I intended to either change the = to <>, and change OR to AND: IF LEN(d$) <> 1 AND d$ <> "0-9" THEN ...or add ELSE, to the existing IF/THEN statement, but then I neglected to do either before posting the code. My bad for muti-tasking with outdoor activities! I read someplace that guys do poorly at multi-tasking. I'm pretty sure Tim Allen got his whole guy bit from me, but I digress....
Anyway, did you try the NAME AS with quotes?
BTW, one difference between NAME AS and MOVE is that MOVE will overwrite a file, and NAME AS will fail if a file with the same name already exists in the drive / directory you are attempting to move it to. _FILEXISTS and _DIREXISTS are helpful in QB64 to prevent such errors, without the need to build an error trapping routine.
http://www.easydos.com/move.htmlSorry about the logic slip. And now, back to the damn yard!
Pete