How can I get a list of files that are present in a directory in visual basic script?
- I looked at rosetta code but it does not have such a task specified.
- The search results I found were poluted by vb.net scripts that I could not apply in my
.vbsscript.
The code is a combination of:
The code below can be stored in a
.vbsfile. It first gets the current directory of the (executing) script, and then it gets the list of files that are inside that directory, returns it and finally it prints the first element.