The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

CopyFile over CIFS

Given: Z is a mapped network drive.

I was shocked to discover

CopyFile("Z:\\foo.txt","Z:\\bar.txt",FALSE);

transfers blocks from Z:\foo.txt to the local machine, then moves the blocks back to the remote machine and sticks them in Z:\bar.txt.

Isn't there a way to have the server do the self-contained copy?  It's really godawful to have clients on dialup connections do in-server file copies.
Michael B
Thursday, August 18, 2005
 
 
AFAIK CIFS does not support that kind of operation.
Take a guess.
Thursday, August 18, 2005
 
 
Looks like there's no way to avoid this with CIFS.  Microsoft doesn't mention copy support here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cifs/protocol/cifs.asp

and if you search for SMB_COM_COPY, a defined CIFS command code, you can find references to it not being implemented.

I could see the Win32 API not supporting it but it seems like an odd thing to leave out of the protocol implementation.
Doug Send private email
Friday, August 19, 2005
 
 
Execute the copy command on the server machine, then?
Christopher Wells Send private email
Monday, August 29, 2005
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz