[go: nahoru, domu]

File copying: Difference between revisions

Content deleted Content added
→‎{{anchor|NCOPY}}Implementation: not specific to one DOS version
→‎{{anchor|NCOPY}}Implementation: mentioned that DR-DOS COPY (implemented in COMMAND.COM) has built-in automatic NCOPY capabilities
Line 17:
 
== {{anchor|NCOPY}}Implementation ==
Internally, however, while some systems have specialized [[application programming interface]]s ([[API]]s) for copying files (like CopyFile and CopyFileEx in [[Windows API]]), others (like Unix and DOS) fall back to simply reading the contents of the old file and writing it to the new file.

This makes little difference with local files (those on the computer's hard drive), but provides an interesting situation when both the source and target files are located on a remote [[file server]].&nbsp;Operating systems with specialized file copying APIs are usually able to tell the server to perform the copying locally, without sending file contents over the network, thus greatly improving performance.&nbsp;Those systems that have no comparable APIs, however, have to read the file contents over the network, and then send them back again, over the network. Sometimes, remote file copying is performed with a specialized command, like "NCOPY" in DOS clients for [[Novell NetWare]]. The [[COPY (DOS command)|COPY]] command in [[DR-DOS]]<!-- at least since Novell DOS 7, possibly earlier. This feature cannot be found in MS-DOS and PC DOS (requires external tools like NCOPY there). --> has built-in support for this.
An even more complicated situation arises when one needs to copy files between two remote servers. The simple way is to read data from one server, and then to write the data to the second server.&nbsp;
 
== See also ==