zoukankan      html  css  js  c++  java
  • Windows API 第14篇 DeleteAndRenameFile

    函数定义:
    BOOL DeleteAndRenameFile( LPCWSTR lpszDestFile,  
                                                     LPCWSTR lpszSourFile
                                                    );
    说明
    函数把sourceFile的内容复制到DestFile中,然后再删除sourceFile。调用前必须保证sourceFile和DestFile都存在,否则,调用失败。当调用失败时,sourceFile和DestFile都不会改变。
    This function deletes the source file (lpszSourFile) after it copies the content of the source file to the destination file (lpszDestFile). Create the source file and the destination file before calling this function.

    注意:
    DeleteAndRenameFile只有对存储在基于RAM的文件系统上的文件管用,而且该函数只在WinCE上运行,一般开发不用

    返回值:
    成功返回1, 失败返回0

  • 相关阅读:
    java多线程实例
    Python——文件操作
    Python—— *与** 参数说明
    Python——序列
    多元线性回归
    Gson转换时,Double转式化
    ftp上传下载
    发送邮件
    jsonp的使用
    用CSS3和Canvas来画网格
  • 原文地址:https://www.cnblogs.com/priarieNew/p/9754700.html
Copyright © 2011-2022 走看看