新建文件夹的命令?谢谢

解决方案 »

  1.   

    The CreateDirectory function creates a new directory. If the underlying file system supports security on files and directories, the function applies a specified security descriptor to the new directory. To specify a template directory, use the CreateDirectoryEx function.BOOL CreateDirectory(
      LPCTSTR lpPathName,                         // directory name
      LPSECURITY_ATTRIBUTES lpSecurityAttributes  // SD
    );
    Parameters
    lpPathName 
    [in] Pointer to a null-terminated string that specifies the path of the directory to be created. 
    There is a default string size limit for paths of 248 characters. This limit is related to how the CreateDirectory function parses paths. Windows NT/2000: To extend this limit to nearly 32,000 wide characters, call the Unicode version of the function and prepend "\\?\" to the path. For more information, see File Name Conventions. lpSecurityAttributes 
    Windows NT/2000: [in] Pointer to a SECURITY_ATTRIBUTES structure. The lpSecurityDescriptor member of the structure specifies a security descriptor for the new directory. If lpSecurityAttributes is NULL, the directory gets a default security descriptor. The target file system must support security on files and directories for this parameter to have an effect. 
    Return Values
    If the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, call GetLastError. Res
      

  2.   

    ok, agree with upstairs