Get the App
SLTechnology News&Howtos  ›  Development  › 

The usage of the VBS property Files

Shulou Source: shulou.com Published: 2022-06-03 19:53:51 11月12日 Update

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!

Tags: Attributes files content objects more knowledge practicality achievement next code name dilemma reality situation folder article case system editor website Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia OPPO Reno Shulou Technology Linux Shulou Information