in reply to SOLVED:Copy a directory on windows

Are you sure $moves{dir} contains the right value? According to the docs $moves{$dir} should be created if it doesn't exist, but it's possible that it can't.