$file is not just a simple var, it is a handle to the COM FSO object. $file.name then is its name, and $file.move is a move/rename operation.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.