hidden directory copy bug

Oct 29, 2008
88
0
COPY help states:
<table style="line-height: normal; width: 520px; height: 47px;" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr style="vertical-align: baseline;" valign="baseline"> <td width="48">/H</td> <td>Forces COPY to process hidden and system source files, as well as normal files. The hidden and system attributes from each source file will be preserved when creating the destination files.</td></tr></tbody></table>​
However:
Code:
1.85G C:\Documents and Settings\jabelli&gt; md tmp0
 
  1.85G C:\Documents and Settings\jabelli&gt; md tmp0\a
 
  1.85G C:\Documents and Settings\jabelli&gt; md tmp0\b
 
  1.85G C:\Documents and Settings\jabelli&gt; attrib /d +h tmp0\a
  ____D________ -&gt; _H__D________  C:\Documents and Settings\jabelli\tmp0\a
 
  1.85G C:\Documents and Settings\jabelli&gt; dir tmp0
 
  Volume in drive C is Boot          Serial number is 585e:fd20
  Directory of  C:\Documents and Settings\jabelli\tmp0\*
 
  03/12/2009  23:21        &lt;DIR&gt;    .
  03/12/2009  23:21        &lt;DIR&gt;    ..
  03/12/2009  23:21        &lt;DIR&gt;    b
                  0 bytes in 0 files and 3 dirs
      1,986,910,720 bytes free
 
  1.85G C:\Documents and Settings\jabelli&gt; copy /h/s tmp0 tmp1
  TCC: (Sys) There are no more files.
  "C:\Documents and Settings\jabelli\tmp0\*"
  TCC: (Sys) There are no more files.
  "C:\Documents and Settings\jabelli\tmp0\a\*"
  TCC: (Sys) There are no more files.
  "C:\Documents and Settings\jabelli\tmp0\b\*"
      0 files copied
 
  1.85G C:\Documents and Settings\jabelli&gt; dir tmp1
 
  Volume in drive C is Boot          Serial number is 585e:fd20
  Directory of  C:\Documents and Settings\jabelli\tmp1\*
 
  03/12/2009  23:22        &lt;DIR&gt;    .
  03/12/2009  23:22        &lt;DIR&gt;    ..
  03/12/2009  23:22        &lt;DIR&gt;    a
  03/12/2009  23:22        &lt;DIR&gt;    b
                  0 bytes in 0 files and 4 dirs
      1,986,907,648 bytes free
 
  1.85G C:\Documents and Settings\jabelli&gt; ver /r
 
  TCC  10.00.59  Windows XP [Version 5.1.2600]
  TCC Build 59  Windows XP Build 2600  Service Pack 3
  Registered to John Belli - 1 System License
 
  1.85G C:\Documents and Settings\jabelli&gt;
This also happened with TC 9. OK, I suppose these are directories, not files, but I expect hidden attributes to be preserved on directories as well.
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
jabelli wrote:

> COPY help states:
> Forces COPY to process hidden and system *source* files, as well as
> normal files. The hidden and system attributes from each source file
> will be preserved when creating the *destination* files.

WAD, and not a bug. COPY preserves hidden attributes for files;
however, you're creating a new directory, not a file, so there's nothing
to preserve.

BTW, /H is an obsolete relic maintained solely for compatibility with
old 4DOS batch files -- you should be using the much more versatile
/A:... syntax nowadays.

(Years ago, somebody requested that COPY behave as you want, but the
suggestion was shouted down by other users.)

Rex Conn
JP Software
 
Similar threads
Thread starter Title Forum Replies Date
A How to? Can't change directory ("cd") into system hidden files Support 13
R Delete command sets directory attributes to hidden & system Support 46
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
cgunhouse Increase in I/O on Hidden TCC Processes Support 11
R Debugsession must not turn hidden objects on. Support 11
vefatica Tabbed toolbar hidden ... not remembered! Support 11
I Hidden files on USB Drive Support 4
C Screens of different size and hidden console Support 8
R WAD issue with filename completion with system and hidden files Support 8
D WAD New envars for @LINES are not hidden Support 8
rps Documentation Help file revision - Copying hidden DESCRIPT.ION files Support 19
D Take Command Prevents Seeing Hidden Files Support 2
vefatica Hidden console doesn't close Support 34
D copy /w deletes hidden files and excluded files Support 13
S OPTION dialog for transient or hidden sessions Support 1
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
D How to use multi-line DO to loop through first level directory names Support 5
D ParentDirectory does not update directory history Support 6
samintz CDD to non-existent directory hangs Support 2
gworley rd (Remove Directory) gives interesting error: Support 2
D Directory History Window with wildcard search Support 3
D How to? Skip removing directory (RMDIR) without error message Support 2
gentzel Directory stack empty when running TCEXIT? Support 9
vefatica Disable extended directory searches (completely)? Support 8
M WAD "Pictures" directory is empty in TCC but not in CMD or Explorer Support 4
G Local Directory Corruption Support 11
Jay Sage Directory Alias Access to FTP Servers Support 2
Joe Caverly DIRectory Colorization in v25 Help File Support 0
K copy changing destination current directory Support 1
thorntonpg option /u not working The directory name is invalid Support 5
J built in file explorer - how do i go back "up" the directory? Support 2
vefatica Extended directory searches? Support 6
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
A Installer /extract: extracts into current directory if target not exists Support 12
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
G Extended directory search not working Support 4
CWBillow Editing in the root directory of windows 10 Support 6
D Directory stack empty Support 1
J directory or folder to start in Support 2
M How to unlock a directory Support 1
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
R V19 - At startup, TCC save directory in the directory history list Support 2
C Touch command — I Need to touch matching files in another directory. Support 5
nickles Move takecommand.18.0.key location to installation directory Support 4
fishman@panix.com Extended Directory Searches are not working for me in CDD Support 9
vefatica TCMD's current directory? Support 4
J How to set working directory Support 10
nickles How to? Follow a JUNCTION type directory link Support 9
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
I tab completion with directory commands Support 7

Similar threads