Need VBS to delete and recreate all TXT & CSV files in a folder
Posted on 2013-11-05
I am pretty new to VB script. This is probably easy, but quite not sure how to proceed. I am using TXT and CSV files to produce a monthly report. My last step is to empty TXT and CSV files in order to be ready for next month. Empty files must be present to start next month process.
I was thinking of a VB Script that would do the following :
For all TXT and CSV files in a specific network folder:
read the filename and extension
delete the file
recreate the file as per the cached filename and extension
Does it make sense?
Your suggestions are welcome
Thanks for your help