I have searched the web but cannot find a specific answer to the following.
What I do know: (1) a txt file of a list of files in S:\Rally can be created from cmd at the S:\Rally prompt:
dir/b>H:\Home\list1.txt
(2) A new Excel file can be opened by saving the following as .vbs:
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.Workbooks.Add
Then run it in cmd (say the .vbs file is saved as C:\Scripts\openex1.vbs):
cscript C:\Scripts\openex1.vbs
What I don't know is (1) how to put these together so that an Excel file (instead of a txt file) is created with the resulting list of files from S:\Rally and (2) how to automate this, preferably to run at the end of each month, but I would be fine to just double click something or go into cmd and run it myself at the end of each month.