Declined Copy to DVD

If I write code like this:

copy /s G:\bks\*.* V:\bks\

where V: is an empty DVD,

how are the DESCRIPT.ION files handled? Do they get copied over and over once per file, each time made larger, or is 4NT copy clever and composes them in a scratch area or in RAM and only writes them once at the end?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,423
85
Albuquerque, NM
prospero.unm.edu
If I write code like this:

copy /s G:\bks\*.* V:\bks\

where V: is an empty DVD,

how are the DESCRIPT.ION files handled? Do they get copied over and over once per file, each time made larger, or is 4NT copy clever and composes them in a scratch area or in RAM and only writes them once at the end?

I believe it's opened, written and closed multiple times. If that's a problem, you can just turn off description processing with SETDOS /D0 and either copy the existing DESCRIPT.IONs, or else create your own by e.g. redirecting from a TEXT / ENDTEXT block or a here-doc block, or building them in the %TEMP directory and moving them over when finished....
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Charles Dye wrote:
| ---Quote (Originally by Roedy)---
|| If I write code like this:
||
|| copy /s G:\bks\*.* V:\bks\
||
|| where V: is an empty DVD,
||
|| how are the DESCRIPT.ION files handled? Do they get copied over and
|| over once per file, each time made larger, or is 4NT copy clever and
|| composes them in a scratch area or in RAM and only writes them once
|| at the end?

| I believe it's opened, written and closed multiple times. If that's
| a problem, you can just turn off description processing with SETDOS
| /D0 and either copy the existing DESCRIPT.IONs, or else create your
| own by e.g. redirecting from a TEXT / ENDTEXT block or a here-doc
| block, or building them in the %TEMP directory and moving them over
| when finished....

Since all files are to be copied from the source, the existing DESCRIPT.ION
files are exactly what need to be copied, without any manipulation (unless
there are hidden files with descriptions in the source, which are not to be
copied). For this reason I think the most efficient way is to disable
description processing using SETDOS /D0, and to include copying the existing
DESCRIPT.ION files by either of 3 methods: 1/ by unhiding them first, or 2/
by specifying that hidden files are also to be copied, or 3/ by explicitly
copying them. Which of the three methods is best depends on the
circumstances. Only if there are descriptions of hidden files in the source,
and those hidden files are not copied, is there a need for any manipulation
at all. In such event the simplest procedure may be to copy twice - first to
a buffer area on a local hard disk, allowing incremental creation of new
DESCRIPT.ION files, then copying all files, including hidden files from the
buffer area to the target, after turning off description processing. This
method is worth doing only if the target itself is not a local hard disk,
but a (much) slower device (e.g., CD-R).

If the target is a local hard drive, dynamic buffering both by the file
system and often by the target disk drive the delays associated with
incrementally building the description files may not be worth worrying, esp.
if a large number of small files is copied. A few large files are similarly
not overly time consuming, because the DESCRIPT.ION files are not
manipulated too often. Only if there is a mix of very large files, whose
delivery purges the caches of DESCRIPT.ION file data, and small files with
descriptions are interspersed would I expect significant speed degradation
due to description processing.
--
HTH, Steve
 
Similar threads
Thread starter Title Forum Replies Date
samintz Done Support ~ and :path in COPY Suggestions 5
C Declined Add switch to MOVE to not make empty destination folders. (COPY's /F) Suggestions 4
C Move/Copy switch not make empty destination sub-folders Suggestions 6
R Copy and Move with auto date/timestamp Suggestions 4
Alpengreis Done Preserves directory attributes for COPYDIR & COPY Suggestions 3
D Duplicate directory path and copy files and subdirectories. Suggestions 4
C Feature Request: Gain some elements of the XXCOPY feature set in COPY or a new "Mass-Copy" command Suggestions 0
R Declined wish-list: add a command to copy a file to clipboard. Suggestions 17
D Done Suggestion: keystroke to copy previous argument Suggestions 3
R Done IDE copy (OR REMOVE) Set var name to Watch list by hotkey Suggestions 2
Alpengreis Done Add "Slow copy" (/WAIT) parameter to SYNC command Suggestions 1
C Declined copy /w suggestion Suggestions 2
WinLanEm Done COPY modify Suggestions 4
rconn New parameter /WTF - COPY/MOVE - Wait on disk full (rather than halt with error) Suggestions 1
rconn Done Copy with Backup Versions Suggestions 0
S Done COPY and MOVE Suggestions 0
S Declined Enhanced @FILE for COPY, DESCRIBE, MOVE, RENAME, SYNC, TOUCH /R Suggestions 0
D Done Suggestion for commands to move/copy a folder Suggestions 7
wbiebel Done copy /u /s Suggestions 1

Similar threads