ESR is a small prototype app using Electron with Electron Forge. The tool can be modified to handle most any type of string search in a directory tree of files.
# Install dependencies
npm install
# Run default app configuration
npm run start
# Publish the app for Windows Platform
npm run publish
The default prototype is setup to do 4 things.
- Select a folder
- Take the base folder name and search / replace all occurrences of that name with a randomly generated string
- Rename 2 root directory files with the randomly generated string
- Rename root folder with the randomly generated string
You can adapt the code to search / replace most anything in a directory tree. I have included by sync and async functions for handling the rename portions.