How to automatically manage folders

  
Office people often accept a large number of documents, documents sent by colleagues, attachments to emails, and some files on the USB flash drive. Often when copying these files, there is not much time to sort and manage these files. Many people directly create a new folder on the desktop to put the files into it. Over time, the desktop is getting fuller, full of "new folder", "new folder (2) & rdquo; … … people will not want to organize. This script helps computer users better manage these temporary files. Right-click on the folder (or desktop) to select the new text document, change the file name to Manager.bat, and write the code in, save and exit. @echo offfor /f "tokens=*" %%i in ('dir/s/b/ad^| Sort /r') do rd "%%i"set dd=%date:~8,2%set mm=%date:~5,2%set yy=%date:~0,4%set folder=" ;%yy%.%mm%.%dd%"md %folder%exit Execute this batch file to automatically create a blank folder with the current date as the file name in the specified directory. Some temporary files of the day can be placed. Enter these blank folders and wait for the classification management after the end of the day. In addition, if no files are placed on the day, the script will automatically detect if the specified directory has an empty folder and delete it automatically. This article comes from [System Home] www.xp85.com
Copyright © Windows knowledge All Rights Reserved