Copy a tree

Jul 12, 2008
286
0
Las Vegas, NV
If I have a folder tree and files on drive C that I want to copy over to, say, drive D and maintain the tree structure and file placements, ...how?

Regards,
Chuck Billow
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
COPYDIR is I think just in the latest version - version 18. What version do you have?
 
Jul 12, 2008
286
0
Las Vegas, NV
17. Also, I set up the command as

copy /s C:\Users\CWBillow\AppData\Roaming\Microsoft\Bibliography D:\CriticalParts

And the error said the syntax was incorrect. How/why?

Regards,
Chuck
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
do you have copy aliased? How does

*copy /s C:\Users\CWBillow\AppData\Roaming\Microsoft\Bibliography D:\CriticalParts

work?
 
Jul 12, 2008
286
0
Las Vegas, NV
It says

C:\>*copy /s C:\Users\CWBillow\AppData\Roaming\Microsoft\Bibliography D:\CriticalParts
'*copy' is not recognized as an internal or external command,
operable program or batch file.

C:\>pause
Press any key to continue . . .
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
Are you sure it's running TCC and not CMD ? And does D:\CriticalParts exist and is it a folder/directory?
 
Jul 12, 2008
286
0
Las Vegas, NV
do you not want to see the command or the actual files being copied?

Initially, yes, I want o see it for verification. But once it is set up properly, I would want to set it up for a schedule time, say, every nite at 10pm via the task scheduler.

Especially now with Windows 10, I have had to set up things again several times, and tracking down all the "latest" pieces is a drag. If I just have them all in a backup folder, then I know just where and when they are and when put.

Chuck
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
With the problem of running the backup in TCMD/TCC .vs. CMD - you might likst to use:

IF 01==1 echo Running in TCMD

Of course you might want to abort the batch if you are running in CMD and not in TCMD / TCC

to hide the window - you can look at the WINDOW command
Code:
Format: WINDOW [ MAX | MIN | RESTORE | HIDE | TRAY | TOPMOST | NOTOPMOST | TOP | BOTTOM | DETACH | /POS=left,top,width,height | /SIZE=rows,columns | /TRANS=n | /FLASH=type,count | "newtitle"  ]


newtitle
A new title for the window
height
New height of window
width
New width of window
left
New position of the left border of window
top
New position of the top border window
rows
New height of window
columns

type

count
New width of window

Type of window flash

Number of times to flash the window


/FLASH /SIZE (of screen buffer)

/POS(ition)
 
Jul 12, 2008
286
0
Las Vegas, NV
The WINDOW HIDE command is near exactly what I want. It flashes at the beginning, so it's not entirely hidden, but it works.

Thanks Charles.

Regards,
Chuck
 
Similar threads
Thread starter Title Forum Replies Date
J directory tree - move or copy Support 3
D Copy directory tree without repeating directory name Support 32
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
J junction copy/move handling Support 6
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
vefatica FTP copy interrupted Support 2
C How to? COPY ftp folder query Support 7
R How to? TCC 16.03: copy a file to the clipboard? Support 10
jadaml Documentation Is COPY realy doesn't work for any HTTP and FTP? Support 3

Similar threads