Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Request: Introduce a Variable to Fetch Parent Folder Name in PowerRename #36094

Open
hldad opened this issue Nov 26, 2024 · 0 comments
Labels
Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams

Comments

@hldad
Copy link

hldad commented Nov 26, 2024

Description of the new feature / enhancement

We propose the addition of a new variable in the PowerRename tool that allows users to dynamically retrieve the name of the parent folder for any given file or folder. This feature would be particularly useful for users who frequently perform batch renaming operations based on the context of their file hierarchy.

The new variable, which we suggest naming ${ParentFolderName}, would be integrated into the PowerRename's search and replace functionality. When a user initiates a rename operation, PowerRename would automatically populate this variable with the name of the folder that contains the selected files or folders. This would enable users to include the parent folder's name in their renaming patterns, providing a more contextual and organized approach to file management.

For example, if a user has a folder named "ProjectX" with several subfolders and files, they could use ${ParentFolderName} to prepend or append the parent folder's name to each file's name, resulting in filenames like "ProjectX_File1.txt" or "File1_ProjectX.txt".

Scenario when this would be used?

The ${ParentFolderName} variable would be particularly beneficial in scenarios where users need to maintain a clear and organized file structure, especially in collaborative environments or when working with large projects that span multiple directories.

  1. Project Management: When organizing files for different projects, being able to include the parent folder's name in the filename can help quickly identify the project a file belongs to without opening it.

  2. Data Analysis: In data analysis, where datasets are often categorized by location or department, the ability to incorporate the parent folder's name into filenames can streamline the sorting and analysis process.

  3. Backup and Archive: For users who create backups or archives of files, having the parent folder's name as part of the filename can help in quickly restoring files to their original locations.

  4. Legal and Compliance: In legal or compliance-related work, where files need to be organized by case or matter, the %ParentFolderName% variable can assist in maintaining a structured naming convention that aligns with case management systems.

By implementing this feature, PowerRename would offer users a more robust and flexible tool for managing their files, enhancing productivity and organization in various professional and personal contexts.

Supporting information

No response

@hldad hldad added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams
Projects
None yet
Development

No branches or pull requests

1 participant