![]() ![]() If you do not want to delete files from subfolders, go ahead and remove the -s parameter. This indicates that the command should look into all sub-folders also. Next is the -s parameter that you see after the directory path. ![]() That’s as simple as copying the path from Windows Explorer for the directory you want and pasting it into the command in Notepad. To customize the command, the first thing you can do is change the directory to something other than C:\Test. Now if you run it, all the files will be deleted. In order to delete any file regardless of when it was created, you can either change the -5 to -0 or you can remove the /D -5 part altogether. The reason why nothing was deleted is because the command has /D -5, which means files that are 5 days or older.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |