ShFileOperation 复制文件时,文件名过长 提示:系统不支持长文件名~~,改名复制没有显示。
然后再复制其他文件就会出错了~~郁闷中请大家帮忙~~是不是创建文件夹时还要有什么说明?

解决方案 »

  1.   

    SHFILEOPSTRUCTpFrom 
    Address of a buffer to specify one or more source file names. These names must be fully qualified paths. Standard DOS wild cards, such as "*", are permitted in the filename position. Although this member is declared as a null-terminated string, it is used as a buffer to hold multiple file names. Each file name must be terminated by a single NULL character. An additional NULL character must be appended to the end of the final name to indicate the end of pFrom. 
      

  2.   

    把文件名控制短点。 
    dos的时候, 文件名限制为8个字符