Just had an error with robocopy using the /B flag and had to change it to the /z flag because of these errors when trying to copy to the mapped unc path (with drive letter).
net use * "\\BLAH\NESTED\OBFUSCATED.WITH SPECIAL_CHARS\SHARE\NAME\DOWN +\DEEP" ----- Drive Z: is now connected to \\BLAH\NESTED\OBFUSCATED.WITH SPECIAL_CHA +RS\SHARE\NAME\DOWN\DEEP. ROBOCOPY "C:\Users\SERVICE_ACCOUNT~1\AppData\Local\Temp" Z:\ Crap.csv +/B ---------------------------------------------------------------------- +--------- ROBOCOPY :: Robust File Copy for Windows + ---------------------------------------------------------------------- +--------- Started : Fri Oct 12 11:12:23 2018 Source : C:\Users\SERVICE_ACCOUNT~1\AppData\Local\Temp\ Dest : Z:\ Files : Crap.csv Options : /COPY:DAT /B /R:1000000 /W:30 ---------------------------------------------------------------------- +-------- ERROR : You do not have the Backup and Restore Files user rights. ***** You need these to perform Backup copies (/B or /ZB). ERROR : Robocopy ran out of memory, exiting. ERROR : Invalid Parameter #%d : "%s" ERROR : Invalid Job File, Line #%d :"%s" Started : %hs Source %c Dest %c Simple Usage :: ROBOCOPY source destination /MIR source :: Source Directory (drive:\path or \\server\share +\path). destination :: Destination Dir (drive:\path or \\server\share +\path). /MIR :: Mirror a complete directory tree. For more usage information run ROBOCOPY /? **** /MIR can DELETE files as well as copy them ! net use Z:\ /delete Z: was deleted successfully.
- 3dbc

In reply to Re^3: perl robocopy to temp mapped drive. by 3dbc
in thread perl robocopy to temp mapped drive. by 3dbc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.