1
Answer

Search Criteria for a folder using FileSystemObject

Photo of sampath meka

sampath meka

10y
852
1
Hello All,

             Using VBScript i want to generate a list of files from a folder.The files in the folder are:

Test_Filename.c
Filename1.c
Filename1.h
Filename2.c
Filename2.h
Filename1.ctr
Filename2.obs
Filename3.project

Need to skip all the files with extension .c,.h but except the filename containing Test_

Output:

Test_Filename.c
Filename1.ctr
Filename2.obs
Filename3.project

Kindly help me in this regard with regular expression if possible

Thanks & Regards,
Sampath

Answers (1)