You are making life hard for yourself. Why not just use the robocopy option to include full pathnames in the logfile?
/FP :: include Full Pathname of files in the output.
In reply to Re: Robocopy log parsing
by BrowserUk
in thread Robocopy log parsing
by bit5nip3r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |