Delete all mac log files2/13/2023 ![]() ![]() ![]() To get all the details on what FORFILES can do, view the online help using the following command from the command prompt:įORFILES /? Remove Files Based on a Date Pattern in the File Name For example, in place of a number, you can enter a date such as ‘-’ to delete files last modified prior to the specified date. The FORFILES command is pretty flexible with the search pattern and date functions. The above command would delete all files from the “C:LogFiles” folder, and all sub-folders which have not been modified in the last week.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |