How do I execute a DIR command from within a VBScript file?
You can use the shell run method for that. After you create the file, you can then use your choice of vbscript method to read the file into your script. Set objShell = CreateObject("WScript.Shel l") makefile=objShell.run("cmd /c your dir command>c:\yo...