Dir() function understanding

后端 未结 2 931
庸人自扰
庸人自扰 2021-01-18 08:34
\' Display the names in C:\\ that represent directories.
MyPath = \"c:\\\"   \' Set the path.
MyName = Dir(MyPath, vbDirectory)   \' Retrieve the first entry.
Do Whi         


        
2条回答
  •  太阳男子
    2021-01-18 09:02

    According to the Dir() MSDN, it

    Returns a string representing the name of a file, directory, or folder that matches a specified pattern or file attribute, or the volume label of a drive.

提交回复
热议问题