Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - nicedreams

Pages: [1]
1
Support and Feedback / Issue with .bat and robocopy.
« on: July 07, 2014, 09:42:41 »
Been trying to create a new User Defined Command that I have set to Command Type=.bat

Using the below with robocopy and it will not work.  The path's get screwed up.  I've tried with quotes, without quotes, tried about every variable I can from the online docs and still comes out incorrect.   http://multicommander.com/docs/multitags


robocopy "${sourcepath}" "${targetpath}" /TEE /MT /MIR /DCOPY:T /COPY:DAT /XD AppData /XJ /FFT /ZB /SEC /XA:SH /R:1 /W:1
pause

I've even tried

robocopy "${sourcepath}" "${targetpath}"      and      robocopy ${sourcepath} ${targetpath}     and still same issue.

This is what I get and a different combo.  I've actually gotten it to have a Dest, but then it gives me double quotes and other extras and gives an error.

========================================
   Source : D:\scans" D:\testfolder"\
     Dest -

    Files : *.*

 Exc Dirs : AppData

  Options : *.* /FFT /TEE /S /E /DCOPY:DAT /COPY:DATS /PURGE /MIR /ZB /XJ /XA:SH
 /MT:8 /R:1 /W:1

------------------------------------------------------------------------------

ERROR : No Destination Directory Specified.

       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 !
Press any key to continue . . .
========================================

Pages: [1]