| 1. |
Solve : Batch file to delete unknown directories? |
|
Answer» I am trying to write a BATCH file to delete folders and files under unknown folders. I have home directories and then username for the next folder (the unknown part) then UNDERNEATH the username I have a preview folder and also files. I would like to delete the preview for all users at a specified interval. I would also like to delete the files underneath the username at a different specified interval. I do not know the usernames. Can I get a list and output to file and somehow read those into the path I would like to delete. Any help is GREATLY APPRECIATED!Unless you're are using a MS-DOS system, batch language is simply the wrong tool for this task. Yes, it can be DONE by nesting a series of FOR statements used in conjunction with DIR, DEL, RD target statements. |
|