The first 3 characters of the error is telling you the problem

C:\192

it's same as in another thread, use Q[\\192 ... instead of '\\192 ... , so
that you preserve the backslashes.

OR

double each backslash- `\\\\192.168.240.10\\oldserver ... and then you can
keep using variables as you normally do.

-y


On Thu, Apr 3, 2025 at 2:14 AM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

> And another IO ffunctio that does ot work:
>
> RotateArchives: renaming directory
> \\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6 to
> \\192.168.240.10\oldserver\Backup\MyDocsBackup\backup4
>
> Failed to rename
> 'C:\192.168.240.10\oldserver\Backup\MyDocsBackup\backup6' to
> 'C:\192.168.240.10\oldserver\Backup\MyDocsBackup\backup4': Failed to
> rename file: no such file or directory
>
> rename put a freaking C: on teh unc path.
>
> Another call to powershell.  Poop!
>
>
>

Reply via email to