How to? Use SYNC with a network drive

I am using;
Code:
TCC  20.00.17   Windows Vista [Version 6.0.6002]
TCC Build 17   Windows Vista Build 6002  Service Pack 2

I have a network drive, drive O:
Code:
TCC:6532: 25 > net use
New connections will be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
OK           O:        \\192.168.1.101\dosbox    Microsoft Windows Network
The command completed successfully.

I have full access to this drive, and the drive does exist;
Code:
TCC:6532: 27 > if exist o:\nul echo Yes
Yes

When I use the sync command,
Code:
which sync
sync is an internal command

as follows, it returns the following;
Code:
TCC:6532: 20 > sync /H /C /W /Z /S /G /V C:\Users\jlc\Documents\DOSBox O:\users\jlc\Documents\DOSBox
Usage : SYNC [/A:[[-][+]rhsdaecjot] /CDEGH /I"text" /JKLM /N[dejnst] /O:[-]adegnrstu /OPQR /Sn /TVWX] dir1 di
r2

When I use the sync command on a local drive (F:), the sync completes correctly;
Code:
TCC:6532: 26 > sync /H /C /W /Z /S /G /V C:\Users\jlc\Documents\DOSBox F:\users\jlc\Documents\DOSBox
SYNC: C:\Users\jlc\Documents\DOSBox => F:\users\jlc\Documents\DOSBox

     0 files copied
SYNC: F:\users\jlc\Documents\DOSBox => C:\Users\jlc\Documents\DOSBox

     0 files copied

I have been using the Microsoft Sync Toy and drive O: with no problems;

upload_2016-9-8_8-46-47.png


Why can I not sync to my O: drive using the SYNC command?

Joe
 

rconn

Administrator
Staff member
May 14, 2008
12,363
150
I can't reproduce that here, unless either the source directory or the target directory doesn't exist. (SYNC will not try to create the target directory.)

If the directories exist, SYNC will display its "SYNC:..." message and begin copying files. Since you're not getting that, I suspect that your target doesn't exist or you don't have access privileges.
 
Well, Microsoft SyncToy works, so I will continue to use it.
Code:
Preview of DOSBox Sync To Drive O (C:\Users\jlc\Documents\DOSBox\, O:\) in time 00:01:49:452.
SyncToy action was 'Synchronize'
Found 4 actions to perform.
Found 28,568 files that did not require action.
Analyzed 261.0 files per second.
Avoided copying 1,139,353,616 bytes in 28,568 files.
Saved approximately 00:37:58:00 by not copying any files.

SyncToy run of DOSBox Sync To Drive O (C:\Users\jlc\Documents\DOSBox\, O:\) completed at 9/9/2016 6:57:44 AM.

SyncToy action was 'Synchronize'.
SyncToy options were:
        Active for run all
        All files included
        No files excluded
        Do not check file contents
        Include read-only files
        Include hidden files
        Include system files
        Backup older files (send to Recycle Bin)
        All subfolders included
SyncToy run took 00:00:03:378.
Copied 135,710 bytes in 8 files in 00:00:03:378.
Bytes per second 40,174.7, files per second 2.4.
Avoided copying 1,139,353,616 bytes in 28,568 files that did not require action.
Saved approximately 07:52:40:07 by not copying all files.

The Sync operation completed successfully on folder pair 'DOSBox Sync To Drive O'
I run it from the TCC command line as;
Code:
SyncToyCmd.exe -R "DOSBox Sync To Drive O"
Joe
 
May 20, 2008
11,414
99
Syracuse, NY, USA
I could not reproduce an error.
Code:
v:\> md \\lucky\v$\empty

v:\> dir /k /m /a:d e*
2016-05-14  22:00         <DIR>    empty

v:\> dir /k /m /a:d \\lucky\v$\e*
2016-09-09  10:15         <DIR>    empty

v:\> copy /s v:\empty \\lucky\v$\empty
V:\empty\a => \\lucky\v$\empty\a
V:\empty\foo\4console64.zip => \\lucky\v$\empty\foo\4console64.zip
V:\empty\foo\4utils64.zip => \\lucky\v$\empty\foo\4utils64.zip
V:\empty\foo\sysutils64.zip => \\lucky\v$\empty\foo\sysutils64.zip
V:\empty\x64\4autotray64.zip => \\lucky\v$\empty\x64\4autotray64.zip
V:\empty\x64\4console64.zip => \\lucky\v$\empty\x64\4console64.zip
V:\empty\x64\4utils64.zip => \\lucky\v$\empty\x64\4utils64.zip
V:\empty\x64\sysutils64.zip => \\lucky\v$\empty\x64\sysutils64.zip
     8 files copied

v:\> sync /H /C /W /Z /S /G /V v:\empty \\lucky\v$\empty
SYNC: V:\empty => \\lucky\v$\empty

     0 files copied
SYNC: \\lucky\v$\empty => V:\empty

     0 files copied

v:\> net use o: \\lucky\v$\empty
The command completed successfully.


v:\> sync /H /C /W /Z /S /G /V v:\empty o:\
SYNC: V:\empty => O:\

     0 files copied
SYNC: O:\ => V:\empty

     0 files copied
 
:facepalm: Well, fudge muffins...

Instead of using;
Code:
sync /H /C /W /Z /S /G /V C:\Users\jlc\Documents\DOSBox O:\users\jlc\Documents\DOSBox

I should have been using;
Code:
sync /H /C /W /Z /S /G /V C:\Users\jlc\Documents\DOSBox O:\

Works as documented now.

Joe :banghead:
 
Similar threads
Thread starter Title Forum Replies Date
D SYNC /W copies back instead of propagating a delete Support 2
Alpengreis [v22.00.41] sync command flag "/X" does not work Support 22
thorntonpg sync /S /F creating empty directories Support 5
M Sync folder/list view with command window? Support 2
R SYNC /T /W does not suppress "deleting" messages Support 0
V WAD SYNC command problem Support 2
CWBillow Sync Folder Tree and Command Window? Support 11
krischik SYNC crashes TCC Support 6
Peter Bratton Sync Surprise Support 6
D sync navigation between Folders List panel and the Tabs console Support 11
P Sync /w won't delete in ftp folder Support 1
A Inverse of CDD /t c:\ (sync TCC currdir to Folders view)? Support 9
N Problem with Sync? Support 0
vefatica Completion of stream names on network share? Support 2
D check for network tcstart.btm and load if newer Support 3
gworley Virtual network drive filename completion doesn’t get directories Support 0
V Network share slowness vs CMD? Support 19
mdwyer TCC 13 COPY: specified network name is no longer available. Support 5
Joe Caverly Network Card Information Features Support 0
L Network Drive slowness Support 0
vefatica This network connection does not exist Support 8
JohnQSmith Slow network directory rename Support 8
S Create links or junctions on network drive Support 5
S Version 11 ZIP /V - Permission denied on Network drive Support 2
noahcoad @full and @truename Issue Resolving Network Share Names Support 1
R Take Command will not release network drive Support 2
R script problem with mapped network drive Support 1
fpefpe (the new) google drive Support 15
Jay Sage Documentation Function @DRIVE Missing in Help Lists Support 0
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
Jay Sage Removable Drive Not Detected Properly Support 11
Chen Touboul TCC not recognize maped drive Support 18
C How to make list of drive contents when shutdown PC / Everything.exe Support 7
S 32-bit Take Command v22 install for thumb drive Support 1
vefatica DEL /R on a SUBST'd drive? Support 1
J Remote storage drive implementation Support 2
Fross WebDav Drive Mapping Issue Support 19
S How to? Registered Take Command 18 on USB thumb drive Support 1
I Hidden files on USB Drive Support 4
S WAD Cannot access mapped drive in 64b Win7 Support 15
T How to? @files and trapping "no disk in drive errors" Support 4
old coot dir /s dies on my C: drive Support 2
A How to? Get Drive Letter From Label Support 3
A How to? Wake up a sleeping drive Support 14
L How to copy an old xp drive to a large ntfs drive Support 6
E WAD Open handle on USB drive in TCC Support 3
Fross Accessing No-Drive Letter Resources Support 4
mfarah How can I tell if a drive is a SUBSTitute? Support 4
S Windows Title of Drive & Directory? Support 4
S MOVE to different drive Support 3

Similar threads