Simple Node.js script to rename files and foldes
- Download and install the latest version of Node.js;
- Open Command Prompt/Shell/Terminal and type
node -v
to make sure the installation completed successfully.
- Download the
rename.js
; - Open Command Prompt/Shell/Terminal in the directory of the script;
- Type
node rename.js "path/to/rename/from1=>path/to/rename/to1" "path/to/rename/from2=>path/to/rename/to2" ...
.
node rename.js "test_folder=>test_folder2" "test_folder2/testFile.txt=>test_folder2/testFile2.txt"