The usage of the VBS property Files
This article introduces the relevant knowledge of "the use of VBS attribute Files". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Returns a Files collection of all File objects in the specified folder, including hidden files and system files.
Object.Files
Object should be the name of the Folder object.
Description
The following code illustrates how to use the Files property:
Function ShowFileList (folderspec) Dim fso, f, F1, fc, s Set fso = CreateObject ("Scripting.FileSystemObject") Set f = fso.GetFolder (folderspec) Set fc = f.Files For Each F1 in fc s = s & f1.name s = s & "
This is the end of the introduction of "NextShowFileList = sEnd Function". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!