WAD Another weird copy command errror...

May 24, 2010
Northlake, Il
And I don't see how this can be attributed to the Windows API (although its source is a complete mystery to me). As usual in this situation, the easiest and best way to demonstrate the problem is with a TCC session log:
  Fri  Mar 22, 2013  7:44:45p
[F:\]md Multi-Media /D
[E:\]cd Multi-Media
[E:\Multi-Media]copy * F: /A: /B /D /F /H /J /K /Njt /S /T /X * F:
TCC: (Sys) There are no more files.
TCC: (Sys) There are no more files.
TCC: (Sys) There are no more files.
"E:\Multi-Media\Music\Sources\Amazon\Celtic Thunder\*"
... Many more lines like the above and below ...
TCC: (Sys) There are no more files.
"E:\Multi-Media\Music\Sources\Amazon\Jay Farrar and Benjamin Gibbard\*"
TCC: (Sys) There are no more files.
"E:\Multi-Media\Music\Sources\Yahoo!\Uncle Kracker\*"
TCC: (Sys) There are no more files.
F:\Multi-Media\Music\Music File Directory List.txt => F:\Multi-Media\Music\Music Fi
le Directory List.txt (Replace) (Y/N/A/R)?

Note that the complaint is that it can't copy files to themselves.

And I have a program that can compare two directory trees, and not all directories were copied.
May 20, 2008
Elkridge, MD, USA
I see many option switches after the specification of source and target. Unlike most commands, where all options must precede other (data specification) command parameters, copy allows interspersing /A (ASCII) and /B (binary) options between source files, though I do not recall a need to do so in the last 15 years. For any other option in copy, and for any option in any other command, the only place to specify them with the legitimate expectation the parser will interpret them correctly is before command data. Although in most cases the parser can DWIM, that is not a dependable expectation. Another peculiarity of copy (shared with move) that one may specify multiple sources, but only a single destination. Your command is in the form
copy source1 source2 OPTIONS source3 destination
where source1 and source3 are "*", source2 and destination are "F:" - clearly source2 and destination are the same...

BTW, your example shows another command with incorrect syntax (though the parser was able to handle it properly):
md Multi-Media /D
May 24, 2010
Northlake, Il
Thank you, Steve. If just falls into the category that I'm half blind (and kind of stupid sometimes ;)) I will also note that some of those switches were placed there in the broad category of "it can't hurt". Sounds like I wasn't completely correct in that presumption.
Similar threads
Thread starter Title Forum Replies Date
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
vefatica Another popup problem Support 10
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
G Press on another Window Support 24
M Another possibly strange remote registry issue Support 5
vefatica Another problem with build 22. Support 3
Patulus Yet another thread on CMD compatibility Support 16
M Take Command 18, migrating to another machine, license problem. Support 1
MickeyF Another TPIPE question Support 6
vefatica Another installer thingy Support 1
vefatica Another @EVERYTHING question Support 4
C Touch command — I Need to touch matching files in another directory. Support 5
M Another "What is wrong?" Support 8
Bill de Haan Another installation is in progress Support 6
fishman@panix.com Another Problem with The Installer Support 1
Charles Dye Another modest proposal Support 4
Dan Glynhampton Documentation v15 help: Another mailto: link oddity Support 0
M Yet another strange something re something called "@TCONVERT" Support 8
Charles Dye Documentation Another help nit Support 3
K_Meinhard Documentation Another installer nit Support 1
ehab aboudaya How to? change ALT-F6 to another key Support 1
A How to? Pass output from ffind to another command in a BTM file Support 5
M Another simple question re. Take Command/TCC window witdth in characters... Support 16
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
M Another bit of weirdness.... Support 0
S MOVE from FTP directory to another FTP directory - bug?? Support 2
vefatica Another debugger observation Support 12
vefatica Another DO /L question Support 1
M Another TCMD "crash" situation... Support 2
S Need help to execute TCC commands on another system Support 6
B TCC doesn't run using another user Support 2
H Another multiple FTP password prompt issue Support 2
Peter Bratton Another little bug? Support 1
M Another problem with renaming files... Support 3
nikbackm Another HISTORY dialog issue Support 0
vefatica Another help nit Support 12
S Another 4NT 8.02 vs TCC 9.02 diff - MOVE command Support 3
p.f.moore Running another batch file without CALL Support 7
Dick Johnson Weird Color Problem Support 8
vefatica BEEP - weird on two machines Support 8
JohnQSmith Weird DIR output (missing lines) Support 1
samintz WAD Weird REN bug Support 6
D WAD Multiple TEE causese weird variable scoping? Support 7
M Weird @Index function result... Support 7
S Weird tab completion in command line Support 2
dcantor Weird interaction with Task Scheduler Support 5
J weird issues in TC10.00.55 Support 4
C Copy (sys) error Support 3
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
vefatica Copy/Paste anomaly Support 4

Similar threads