zoukankan      html  css  js  c++  java
  • 按路径依次创建文件夹

    递归 创建文件夹
    //z 2014-05-29 16:41:11 L.216'26329 BG57IV3 T2159929394.K.F1370514324[T3,L69,R1,V79]

    Creates all the directories in the specified path, beginning with the root.

    Syntax

    BOOL WINAPI MakeSureDirectoryPathExists(
      _In_  PCSTR DirPath
    );

    Remarks

    Each directory specified is created, if it does not already exist. If only some of the directories are created, the function will return FALSE.

    This function does not support Unicode strings. To specify a Unicode path, use the SHCreateDirectoryEx function.

    All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.

    //z 2014-05-29 16:41:11 L.216'26329 BG57IV3 T2159929394.K.F1370514324[T3,L69,R1,V79]

    Syntax

    int SHCreateDirectoryEx(
      _In_opt_  HWND hwnd,
      _In_      LPCTSTR pszPath,
      _In_opt_  const SECURITY_ATTRIBUTES *psa
    );
    

    Remarks

    This function creates a file system folder whose fully qualified path is given by pszPath. If one or more of the intermediate folders do not exist, they are created as well. SHCreateDirectoryEx also verifies that the files are visible. If they are not visible, expect one of the following:

    • If hwnd is set to a valid window handle, a message box is displayed warning the user that he or she might not be able to access the files. If the user chooses not to proceed, the function returns ERROR_CANCELLED.
    • If hwnd is set to NULL, no user interface is displayed and the function returns ERROR_CANCELLED.
    //z 2014-05-29 16:41:11 L.216'26329 BG57IV3 T2159929394.K.F1370514324[T3,L69,R1,V79]


    @IS2120#CNBLOGS.T2169364049[T1,L65,R1,V259]:备忘
    $ € ₤ ₭ ₪ ₩ ₮ ₦ ₱ ฿ ₡ ₫ ﷼ ¥ ﷼ ₫ ₡ ฿ ₱ ₦ ₮ ₩ ₪ ₭ ₤ € $
  • 相关阅读:
    训练赛(28)—— 计蒜客 45724 Jumping Frog
    训练赛(28)—— 计蒜客 45725 Fujiyama Thursday
    centos上libreoffice+unoconv安装步骤,实现word转pdf
    PhantomJS linux系统下安装步骤及使用方法(网页截屏功能)
    knockout应用开发指南(完整版)
    git 创建版本库
    保留json字符串中文的函数,代替json_encode
    微信公众平台开发接口PHP SDK完整版(转载)
    find_in_set()
    NuSOAP与PHPRPC比较(转)
  • 原文地址:https://www.cnblogs.com/IS2120/p/6745655.html
Copyright © 2011-2022 走看看