npm install --save cp-fileutil
npm install -g cp-fileutil
Global installation will give you fileutil command in cmd
This utility package has two functionality, rename and move
To rename the file with which contains specific keywords to replace that keywords found in file name
fileutil rename --src="file path" --keyWord="give keywords to find that in file which you want to replace" --replacer="replacement word"
Example:
fileutil rename --s="P:\src" --k="ebook" --r=""
fileutil move --src="file path" --dest="filepath" --replace="Word in file name which you can use to move the file " --fileType="type of file you want to move"
Example:
fileutil move --s="P:\src" --d="P:\dest" --r="Mastering" -f="pdf"
The above command will move all the files which contains keyword as 'Mastering' from P:\src to P:\dest whose extension is pdf.