Command Line Synch
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 3
- Joined: 2024-11-08, 03:11 UTC
Command Line Synch
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.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Command Line Synch
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
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
https://www.ghisler.com
-
- Junior Member
- Posts: 3
- Joined: 2024-11-08, 03:11 UTC
Re: Command Line Synch
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Command Line Synch
You can't use xcopy with the USB connection, only Total Commander can see the files via that connection.I have my cable matters transfer cable and installed TC.
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
https://www.ghisler.com
-
- Junior Member
- Posts: 3
- Joined: 2024-11-08, 03:11 UTC
Re: Command Line Synch
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.