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.


Messages - nicedreams

Pages: [1]
1
Support and Feedback / Re: Issue with .bat and robocopy.
« on: August 13, 2014, 07:32:44 »
Just FYI I changed the variables to ${leftpath} and ${rightpath} since I figured out if you're not careful which pane is selected, you'll lose your files.

Messing with some other options too.  :)

2
Support and Feedback / Re: Issue with .bat and robocopy.
« on: August 13, 2014, 07:27:47 »
Running MC as admin has fixed the issue and is working fine now.  I really appreciate all the time and effort you guys put into this simple task for me.  Was just getting frustrated that I felt defeated with robocopy in MC after using robocopy for years.  lol

Thanks again!

3
Support and Feedback / Re: Issue with .bat and robocopy.
« on: August 11, 2014, 04:37:01 »
Tried messing with it and so I deleted the entire robocopy string and just put

robocopy %SOURCE% %TARGET% /MIR


It looked like it went right through, but now all my test files in my source and destination are gone and don't have a clue what happened.  Using /MIR is just a mirror function so should have my data in source still.  I do from command line.




Don't worry about this function anymore.  I don't know if you are testing this on your own computer or just writing code and having me try it.  Windows Vista/7/8 has robocopy built in and is awesome.  I just used 2 directories and some test files to try this out.  But if files just deleted from using robocopy within MultiCommander with the /MIR command then it's not enough for me to trust MC with Robocopy.

4
Support and Feedback / Re: Issue with .bat and robocopy.
« on: August 11, 2014, 04:26:34 »
Haven't tried to mess with this in a bit and decided to come back to it.  Thanks for the script that you wrote up for this.

I have tried it and still getting issues.  Only spent a few minutes so far looking at the issue.  Here it is below:

(This is using a copy and paste of your code you provided.)

================================================================

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows

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

  Started : Sunday, August 10, 2014 7:22:48 PM
   Source : D:\testfolder\
     Dest : D:\scans\

    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 : 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 : %s %s

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


================================================================

5
Support and Feedback / Re: Issue with .bat and robocopy.
« on: July 20, 2014, 20:35:24 »
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/multitags

If 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 . . .
=====================================================================================
=====================================================================================

6
Support and Feedback / Re: Issue with .bat and robocopy.
« on: July 09, 2014, 03:26:34 »
Doesn't work.  I'm giving up on it.  I'll stick to batch.

7
Support and Feedback / Re: Issue with .bat and robocopy.
« on: July 08, 2014, 17:39:22 »
I already modify a batch script to run backups between folders and was hoping to have the folders opened in the two panes and starting the script that way would be nice, but I guess has issues with robocopy.

I will just stick to my normal batch scripts.

All Windows 7 and 8 have robocopy if you want to try.  Its the main utility for backups and sync in networks and works like a champ.  I'm just testing with 2 test folders and files until it works.


Maybe the author can make a left and right pane variable without quotes and trailing backslash in the next version?  That would be cool.



8
Support and Feedback / Re: Issue with .bat and robocopy.
« on: July 07, 2014, 23:31:54 »
To keep it simple so you can try it on your own PC without all the extra variables.  I'm on Windows 8.1 update 1.


WORKS inside of MC

robocopy D:\scans D:\testfolder
pause


DOES NOT WORK inside of MC  (I have D:\scans in my left pane and D:\testfolder in my right pane within MC when I run it.)

robocopy ${sourcepath} ${targetpath}
pause


I have tried all other variables like ${forcuspath}  and others.

Still get error with entire path on the same line for SOURCE.

9
Support and Feedback / Re: Issue with .bat and robocopy.
« on: July 07, 2014, 18:29:35 »
Doing like you put above seems to get good results.

echo ${sourcepath} ${targetpath}
pause


But back to using robocopy and it puts them both on the source line for some reason.  Like robocopy picks those variables up differently?


Want this to work as it makes it much easier than editing my batch script or manually doing this and changing the directories.


10
Support and Feedback / Re: Issue with .bat and robocopy.
« on: July 07, 2014, 17:28:06 »
I've tried without the quotes and it's the same issue.

If I use "copy" or "xcopy" it work fine.  It's just something between the variables and how robocopy is picking them up.

I'm trying to make a function to where when I have two panes open, it will use the robocopy /MIR to mirror the left pane to the right pane.

11
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]