Odd RoboCopy behavior in script


i using code robocopy , getting odd behavior.

robocopy $sourcefolder $destinationfolder /mir /mt /copyall /r:5 /w:5 /log:$env:temp\pxcopy.log /ns /nc /np | out-null

when hard code source , destination works right every time. however, when use source , destination paths have been pulled xml, robocopy returns 0 (no new or changed files copy) , nothing, when verifiably not so. code using process xml function working 15 other tasks have need paths, new robocopy task has issues. 

fwiw, work fine when copying empty folder, it's when trying compare mirror fails.

also, working ps 2.0, , not in position require newer version, if issue.

any thoughts?

thanks!
gordon


unfortunalt there not enough info determine problem sib=nce has withhowyou retrieving xml data.  youneed post tehxml , script or as necessary demonstrate issue.  mosst mistake inhow retrieving xml data.

if there spaces int paths may have other issues.


¯\_(ツ)_/¯



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Motherboard replacement

Remote Desktop App - Error 0x207 or 0x607

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state