What am I doing wrong?

May 24, 2010
855
0
Northlake, Il
I want to copy my entire C: drive to my T: drive (an external disk) for backup. I enter the following command:
Code:
[C:\]Copy /S /H /E /F /G /K /X C:\* T:\
and it sits there for a minute or two and then stops with nothing whatsoever copied (i.e. the T drive contains no files and no directories). Whatever can I be doing wrong?
 
May 24, 2010
855
0
Northlake, Il
The removal of "/E" was a very good idea but doing so changed nothing. And more: Executing:
Code:
[C:\]Timer on & *copy /S /H /F /G /K /X * T:\ & Timer Off
Timer 1 on: 22:18:58

[C:\]
The "Timer Off" was never executed and the "T" drive was empty.

Putting the copy into a batch file again preceded by a "Timer On" and followed by a "Timer Off" did nothing useful; again the "Timer Off" never got executed.

And entering the "Timer Off" command while the copy was actually executing gave the following:
Code:
[C:\]Timer on & *copy /S /H /F /G /K /X * T:\ & Timer Off
Timer 1 on: 22:18:58
[C:\]Timer off
Timer 1 off: 22:19:35  Elapsed: 0:00:37.30
That is approximately 37 seconds to do absolutely nothing.

And just to be complete about it although it shouldn't make any difference "T" is a subst'd drive to "X:\14-08-23" where "X" is the external hard drive.
 
Last edited:
Nov 13, 2008
255
3
www.thedave.me
I wonder if "robocopy /mir" might be a better choice? TCC's COPY really should work, and the fact that it abandons the entire command line without reporting an error clearly makes this a TCC bug (either in processing, or in the lack of a response).

In my experience, robocopy is dramatically faster at working through large trees and sets of data than TCC's COPY implementation, so even if you can figure out why your TCC command line won't work, robocopy might be a better solution overall.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Did anyone other than Dan try this? Did it fail? I added "/N" so no copying would actually be done and got a quite long list of what would be done, and
Code:
105,467 files would be copied
 
May 24, 2010
855
0
Northlake, Il
Thank you for telling me about RoboCopy (I'd never heard of it). It is a much better solution than is the Copy command as you pointed out (and why my straight copy failed so miserably will just remain a mystery).
 
May 24, 2010
855
0
Northlake, Il
While that was something I didn't know (and further evidence that Microsoft isn't always very smart), Rex, that could not be the problem with my copy command. I will repeat: the command ran for 37 seconds and stopped after doing absolutely nothing.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
While that was something I didn't know (and further evidence that Microsoft isn't always very smart), Rex, that could not be the problem with my copy command. I will repeat: the command ran for 37 seconds and stopped after doing absolutely nothing.

That's exactly what I would expect to happen if the copy started with one of the symlinks.
 
May 24, 2010
855
0
Northlake, Il
Rex I have to disagree with you. I would think that that would cause an infinite loop rather than stopping after 37 seconds of doing absolutely nothing.

But we don't have to pursue this unless you want to (I'm willing to do whatever I can to help you figure out what the real problem is); the RoboCopy command does exactly what I want to get done.
 
Last edited:
May 24, 2010
855
0
Northlake, Il
Charles I have not but I will as soon as the RoboCopy terminates. That could take several days because it is a quite slow external IDE drive that I am copying to.
 
Similar threads
Thread starter Title Forum Replies Date
M How to? What am I doing wrong/not understanding? Support 10
M What am I doing wrong here? Support 2
M What am I doing wrong in this (very simple!) code? Support 3
M How to? Missing closing quote: What am I doing wrong???? Support 7
fishman@panix.com V23 cdd /s doing WIERD things. Support 5
P Doing math with TCC Support 11
B when doing SFTP via IFTP to my secure site my users always get the finger print key prompt Support 1
C take command 19 not doing well under windows 10 build 14295 Support 3
fromano Fixed /E not working in TCMD 17.0.40 while doing one way synch Support 1
fromano Fixed TCC crashing inside TCMD 17.0.35 after doing a copy Support 11
M Hotkey-mechanism, for doing something with the current command-line Support 4
M Unexpected Results from Doing Numeric Comparisons... Support 17
vefatica Who's doing the cacheing? Support 6
JohnQSmith New online help file wrong logo Support 7
vefatica @EXECSTR ... TCSTART ... something's wrong! Support 7
R History window wrong size, can't remember size change Support 12
mfarah Fixed The DATE command produces the wrong error message. Support 1
MikeBaas @regsetenv complains "wrong parameter" Support 14
mikea How to? TCC registered to wrong 'entity' Support 5
T @replace -- what is wrong here Support 2
vefatica Fixed KEYSTACK /i with repeat count sends wrong keys Support 7
C ZIP/U compares wrong timestamp Support 13
vefatica @WORDS, often wrong Support 0
vefatica gcd() ... wrong answer, lcm() hangs Support 5
D What is wrong with this code? Support 7
vefatica WAD DIR /HL still gets names wrong Support 16
H Fixed DIR /G returns wrong sizes Support 2
M Another "What is wrong?" Support 8
M What is wrong with this command? Support 4
vefatica Updater says wrong version Support 1
CWBillow Wrong icons keep sticking Support 6
C News link wrong Support 1
C Forum column headings wrong? Support 4
gschizas Installation folder for TCMD x64 15.1 is wrong Support 5
Dan Glynhampton Documentation v15 help: ECHOXERR Help Page Title is Wrong Support 0
vefatica Something wrong with @PID Support 10
J zip wrong central directory signature Support 12
S Fixed _DO_FILES and _DO_DIRS wrong Support 0
B Downloading Updates - Error: Wrong file size?? Support 3
vefatica What's wrong here? Support 2
vefatica Wrong startup file? Support 1
gschizas (minor) Help topic "Colors, Color Names and Codes" is wrong Support 0
T Wrong prompt in Windows command console Support 3
M Where am I going wrong with ALIAS??? Support 7
G Wrong File Size Support 8
vefatica Updating v10: error wrong file size Support 2
S Wrong .INI file used by TCC Support 2
K_Meinhard Wrong sender adress Support 0

Similar threads