Say for eg., there are 20 vbs file in my frame work located at C:\LIBS\ I want to remove all already associated vbs file and add all 20 vbs present at above mentioned location.
I tried to get all files using below code
Set fso= CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder("C:\LIBS\")
Set fc = f.files
For Each singlefile in fc
msgbox singlefile.name
Next
By this I was able to see all the vbs file. However I am not sure how can I use these file to associate it with my test.
Thanks in Advance.