Here we're dealing with two programs: perl and move. Actually, on Windows, I think move is merely part of CMD.EXE. You need to format your input into move from perl such that move (or CMD.EXE) understands it. And it doesn't get spaces properly.
system qq(move /y "$defaultdir/$matchedfolder" "$destinationdir");
Perl makes this so much easier than doing the same thing in other languages, such as C or Java. SOOOO much easier with that qq operator. |