Since there was an update to Multi Commander I went ahead and tried this again. Still doesn't work. Any other action like XCOPY or COPY or MOVE works fine though with the MC variables for some reason and don't understand why Robocopy picks this up wrong.
I don't think you are getting my point. If I try to use a variable so whatever is opened in the left and right pane of the software, it will detect that and use ROBOCOPY /MIR to mirror the contents from the right pane to the left pane. If I hard set the path in the script it works fine. It's just when I use variables inside of Multi Commander, it messes up for some reason and adds trailing slashes and quotes.
Wish it would work or if there was a fast Directory Mirror I can trust like Robocopy built inside of this software.
So again...... robocopy "D:\scans" "D:\testfolder" Works fine.
robocopy ${sourcepath} ${targetpath} Does not work
robocopy "${sourcepath}" "${targetpath}" Does not work
Using SET command to define variables, still gives same issues.
Tried all the variables and does not work, same results.
http://multicommander.com/docs/multitagsIf you look at the error message below, it never has destination like it picks up ${sourcepath} ${targetpath} as the same source line. I've tried "quotes" also. When I mess with it a little bit, then the destination is there, but the formatting becomes incorrect and gives errors. It is not picking these up like if I used %appdata% and %temp% or other system variables. Is is the $DOLLAR sign in MC screwing up the variables?
Maybe author could make up something to work with Robocopy correctly? Maybe can just add a mirror function within MC that uses Robocopy and the option of mirror? Will use this program every single day if I can get this working. Will save time on modifying scripts for different tasks.
=====================================================================================
=====================================================================================
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Sunday, July 20, 2014 11:31:37 AM
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 . . .
=====================================================================================
=====================================================================================