BOOL MoveFile(
  LPCTSTR lpExistingFileName, // pointer to the name of the existing file
  LPCTSTR lpNewFileName       // pointer to the new name for the file
);
BOOL MoveFileEx(
  LPCTSTR lpExistingFileName,  // pointer to the name of the existing file
  LPCTSTR lpNewFileName,       // pointer to the new name for the file
  DWORD dwFlags                // flag that specifies how to move file
);
 BOOL CopyFile(
  LPCTSTR lpExistingFileName,
                          // pointer to name of an existing file
  LPCTSTR lpNewFileName,  // pointer to filename to copy to
  BOOL bFailIfExists      // flag for operation if file exists
);
 

解决方案 »

  1.   

    执行复制操作时,把操作的类型(剪切、复制)和用户选中的文件名(全路径名或着目录和
    文件名)记录到剪贴板中或者自己的变量中。如果再执行粘贴操作,则先查看选中的目录是
    否和记录的复制源目录一样,不是则把记录的文件一个个移动(MoveFile)
    或复制(CopyFile)到选中的目录即可。
      

  2.   

    受不了了,VB版里边都有人解决了,这里就没有?
    http://www.csdn.net/expert/Topic/330/330617.shtm
    看不懂的话我也没办法了……
      

  3.   

    我所知的剪贴板有两种。即普通的剪贴板和OLE剪贴板。都可以完成你的需要,整个文件的复制入剪贴板和把路径复制进去都可以。具体的看看MSDN吧。用OLE的剪贴板要用到几个类,我记不太清楚了。