Copyfileto(e:\sqldata\exam.mdf,d:\sqldata\exam.mdf)

解决方案 »

  1.   

    看你的文件的文件名是SQL SERVER的数据库文件,在拷这种 文件之前你要保证停止SQL SERVER的服务,否则你的拷贝要出错的。
    copyfileto(e:\sqldata\exam.mfd,d:\sqldata\exam.mdf);
      

  2.   

    BOOL CopyFile(
      LPCTSTR lpExistingFileName, // name of an existing file
      LPCTSTR lpNewFileName,      // name of new file
      BOOL bFailIfExists          // operation if file exists
    );
      

  3.   

    BOOL CopyFile(
      LPCTSTR lpExistingFileName, // name of an existing file
      LPCTSTR lpNewFileName,      // name of new file
      BOOL bFailIfExists          // operation if file exists
    );
      

  4.   

    BOOL CopyFile(
      LPCTSTR lpExistingFileName, // name of an existing file
      LPCTSTR lpNewFileName,      // name of new file
      BOOL bFailIfExists          // operation if file exists
    );
      

  5.   

    好像在windows平台下是不可以用copyfileto的只能用corpfile,
    但我不知道怎么用这个函数,请具体指点,谢谢!
      

  6.   

    好像在windows平台上是不可以用copyfileto的,只能用copyfile,但copyfile我不会用,请具体指点,最好是用个具体的拷贝例子演示一下,小弟不胜感激!
      

  7.   

    Copyfile(d:\sqldata\exam.mdf,e:\sqldata\exam.mdf,flase);
      

  8.   

    Copyfile(d:\sqldata\exam.mdf,e:\sqldata\exam.mdf,flase);