| || |
How to find names of all files present in folder ?
I need to find out name of all the files present in a specific folder .
For example :-
Folder employee has 3 files January.xls , February.xls and March.xls .
Then , I need to find out no. of files present in folder employee as no. of files can be different at different point of time . Also , I need to store names of all present files in an array . Please help me .
- Thanks ,
Re: How to find names of all files present in folder ?
For number of files, use aqFileSystem.GetFolderInfo(Path).Files.Count.
For names of files, see the example in Files Property.
To learn how to work with arrays, see Scalar Variables and Array Variables in the VBScript Variables MSDN article