Command Line Synch

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
MikeTV2000
Junior Member
Junior Member
Posts: 3
Joined: 2024-11-08, 03:11 UTC

Command Line Synch

Post by *MikeTV2000 »

Does the user interface have to be used, or can this be done by command line? Attempting to automate a synch between a host and secondary PC folders. One PC has a ongoing log, the other I just need to copy the logs to from the host.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Command Line Synch

Post by *ghisler(Author) »

Have a look at the help section 4a, command line parameters: You can start the "Compare" step of the synchronize dialog automatically, but not the "Synchronize" step. If you just want to copy newer and updated files in one direction, you can use something like this:
xcopy c:\ d:\ /D /S /H
/D means only newer
/S with subdirectories
/H also hidden files
Author of Total Commander
https://www.ghisler.com
MikeTV2000
Junior Member
Junior Member
Posts: 3
Joined: 2024-11-08, 03:11 UTC

Re: Command Line Synch

Post by *MikeTV2000 »

Hi. I have my cable matters transfer cable and installed TC. Unless this method is not suggested here is what was done. Used Port Connection to Other PC and set one to Client and one to server. On the server kept USB connection dialogue open and had to prevent server PC from sleeping. (May be a killer for me). The server shows as port://usb or under that header 0:/c:/Log Files/ and client normal directory c:\batches. XCOPY does not like the 0:/c:/Log Files.

What is the best connection method? If it is what I am using then the destination does not show as a regular drive. How can I use XCOPY. My guess is that connection is not suggested.

Lastly, the sleep thing is not helping. The PC is forced to screen lock. It has not been set yet to not power off screen or HD in power settings yet. Just started testing this concept on new PC.

Using this to transfer files from a source PC that is forced into one network connection only (LAN with PLC Network) to another PC with same conditions but on Wifi to Intranet.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Command Line Synch

Post by *ghisler(Author) »

I have my cable matters transfer cable and installed TC.
You can't use xcopy with the USB connection, only Total Commander can see the files via that connection.
I assumed that you were connecting to the other PC via network (Ethernet or WLAN), or a LAN crossover cable.
Author of Total Commander
https://www.ghisler.com
MikeTV2000
Junior Member
Junior Member
Posts: 3
Joined: 2024-11-08, 03:11 UTC

Re: Command Line Synch

Post by *MikeTV2000 »

Thank you for your quick reply. I will have to keep looking back to see if there ever becomes an automated way to use the Synch step or just a plain copy. Using the USB transfer cable that is.
Post Reply