junction copy/move handling

Dec 10, 2014
66
1
When using copy or move on a directory tree containing ntfs directory junctions, these are "de-juntionized" and either empty dirs are created (move) or containing files are duplicated (copy).

Either I'm missing something here, or there's room for improvement: At least output an error message, or (proper behavior) re-create the junction where the directory tree is copied/moved to.

Code:
touch /cs source\test\test.txt
junction source\bug source\test
copy /sy /md source\* copied
move /sy /md source\* moved
 
Jan 12, 2014
422
7
Switzerland, SO
Sorry, Rex and juppycmd, for the "side-question" ...

Exactly for such things, it would be so great to have the COMPLETE help also in command line. I had wrote a feature request "long time ago".

Is this really not possible - and if not, why?

Kind regards!
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
Why would that be of any benefit?

The so-called "quick help" is:

1) a lot more keystrokes than F1;
2) will scroll off the current console page for many commands (including COPY and MOVE);
3) in order to be comprehensive & comprehensible has to be expanded probably at least 5x from the current text;
4) has to be translated into multiple languages, and reformatted manually (in all languages) whenever an option is added.
5) 3 + 4 together would be several months of work -- would you rather have a new version with 200+ new features, or a new version with only new quick help that wasn't usable anyway because of 1 + 2?
 
Jan 12, 2014
422
7
Switzerland, SO
Okay, Rex, I see the point(s) NOW.

I have actually change my habit. I come originally from text-oriented Operating Systems such as NCR ITX or Unix System V in console mode. Somehow I have this behavior never changed ... even for the real TC help, I typed always "help command" ...

Indeed, F1 is much smarter!

I also understand the other arguments and have to agree.

Thanks for your posting!
 
Dec 10, 2014
66
1
You're missing something -- see the /L and /LD options for COPY (and /LD for MOVE).

Thanks, the reason for me not seeing this is that these options are only in the .chm help file, and not in the copy /? or move /? quick help (yet) ... so it'd be nice to have them amended in case other people rely on the /? list to be complete.
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
Thanks, the reason for me not seeing this is that these options are only in the .chm help file, and not in the copy /? or move /? quick help (yet) ... so it'd be nice to have them amended in case other people rely on the /? list to be complete.

See my previous comment above on why that's not going to happen.
 
Similar threads
Thread starter Title Forum Replies Date
nickles How to? Follow a JUNCTION type directory link Support 9
M How to? Get both path to and target of symbolic link/junction... Support 2
vefatica @TRUENAME not seeing through junction Support 11
S TCMD14 & free for JUNCTION's Support 14
Stefano Piccardi Fixed mklink /X junction\ Support 3
BobK The "JUNCTION" confusion with DIR at a command line Support 9
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
D Documentation Typo in COPY help Support 0
samintz COPY fails to copy from \\wsl$ Support 20
D Differences between TCC and CMD with COPY /b Support 4
fpefpe copy /u and timestamps Support 4
M Strange error messages from TCC in FTP copy Support 7
G TCMD crash when copy Support 3
Alpengreis How to? Copy DIRs with attributes ... Support 4
E Text copy bug Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
fpefpe copy/cat Support 7
K copy /w slow relative to robocopy /mir Support 0
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
K "copy /z /w" command not deleting read-only files in destination Support 10
K copy changing destination current directory Support 1
D Keystroke to copy previous argument Support 3
A How to? Copy+Paste in TCMD tabs with Ctrl-Shift-Ins? Support 5
RChrismon How to? Copy TCMD.INI to New Version Support 7
R How to? Append files in multiple subfolders using copy? Support 8
Dick Johnson COPY /u (?) Support 9
fpefpe Documentation copy /u Support 7
R How to? copy /q ABC.txt + DEF.txt is appending hex 1A Support 8
D copy /g only shows transfer rate Support 1
J Error "Contents lost before copy" Support 3
B Can copy command concatenate multiple mp3 files Support 2
rps Documentation "Copy+Paste+run" question Support 2
kb6ojs Make /G parameter persistent in COPY/MOVE command? Support 4
fpefpe How to? copy / exclude Support 2
fpefpe robocopy -- copy /w Support 8
C copy /w /p prompts for deletion, but ... Support 3
D Fixed Copy Support 1
fpefpe Documentation copy/move using /c or /u Support 2
samintz WAD Copy/append adds a character Support 3
P Simple RegEx copy Support 9
fromano Fixed COPY ... TO ... crashing Support 3
Alpengreis How to? Copy & Paste without linebreak within TCMD Support 13
D COPY returns ERRORLEVEL 2 Support 5
mdwyer TCC 13 COPY: specified network name is no longer available. Support 5
CWBillow Copy a tree Support 17
vefatica Fixed COPY /S ftp://... Support 1
C WAD copy /u ftp local with Timeout? Support 5
D How to? Unregister a copy of Take command Support 1

Similar threads