Howdy!
I'm somewhat of a newbie to VB Scripting and I'm trying to do what I think is simple but I'm getting stuck. I'm not even sure if a vb script is approriate or necessary to do this. Here's what it want to do;
I want to create a boot time event (XP Event Handler) that will run a vb script to delete all the subdirectories in a given parent directory. For example, if I have a directory on my drive called "Logs" and it contains numerous subdirectories who's names are numnerical and all begin with a 0 like "021243" and "030403" etc...I'm trying to write a script that will check this Logs directory for the existance of these subdirectories and delete them (and all thier contents).
I know I need the following components but I'm not sure if I'm over engineering this. I'm also struggling with the syntax. Any help would be greatly appreciated.
1) check Logs directory for any subdirectories
2) if subdirectories are found delete all of them and their contents
3) if no subdirectories are found then just abort
That's it ;-)
TIA!
-ORASYB
I'm somewhat of a newbie to VB Scripting and I'm trying to do what I think is simple but I'm getting stuck. I'm not even sure if a vb script is approriate or necessary to do this. Here's what it want to do;
I want to create a boot time event (XP Event Handler) that will run a vb script to delete all the subdirectories in a given parent directory. For example, if I have a directory on my drive called "Logs" and it contains numerous subdirectories who's names are numnerical and all begin with a 0 like "021243" and "030403" etc...I'm trying to write a script that will check this Logs directory for the existance of these subdirectories and delete them (and all thier contents).
I know I need the following components but I'm not sure if I'm over engineering this. I'm also struggling with the syntax. Any help would be greatly appreciated.
1) check Logs directory for any subdirectories
2) if subdirectories are found delete all of them and their contents
3) if no subdirectories are found then just abort
That's it ;-)
TIA!
-ORASYB