my @report = qx(robocopy /njh /nfl /ndl /np /l /s "$testpath" "x:\\nodir");
See my node Calling External Commands More Safely. In this case, I might recommend IPC::Run3, which on Windows uses Win32::ShellQuote automatically.
Edits: Added mention of Win32::ShellQuote and quoted the node.
In reply to Re: How to pass a folder name to Windows external commands?
by haukex
in thread How to pass a folder name to Windows external commands?
by freonpsandoz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |