{"id":16212242,"url":"https://github.com/driaug/ps-mass-rename","last_synced_at":"2025-04-07T21:44:44.644Z","repository":{"id":113848792,"uuid":"251038247","full_name":"driaug/ps-mass-rename","owner":"driaug","description":"Mass rename Powershell script","archived":false,"fork":false,"pushed_at":"2020-05-06T14:03:19.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T23:17:48.395Z","etag":null,"topics":["command-line-tool","powershell","powershell-script","tool"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/driaug.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-29T13:26:51.000Z","updated_at":"2023-03-07T14:49:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5bc4a50-3550-447a-b064-924923141398","html_url":"https://github.com/driaug/ps-mass-rename","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driaug%2Fps-mass-rename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driaug%2Fps-mass-rename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driaug%2Fps-mass-rename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driaug%2Fps-mass-rename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/driaug","download_url":"https://codeload.github.com/driaug/ps-mass-rename/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247737132,"owners_count":20987714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line-tool","powershell","powershell-script","tool"],"created_at":"2024-10-10T10:51:18.632Z","updated_at":"2025-04-07T21:44:44.596Z","avatar_url":"https://github.com/driaug.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Powershell Mass Rename\n\nThis script has been made by @Drieaugu (2019-2020 1ITF1) for the Windows System Administration course. This script makes it easy to rename large batches of files in one go.\n\n# Usage\n\n## Get-Help\n\nBefore using this script, make sure you understand its functionality . You can find a: description, list of parameters and examples via the built-in command `Get-Help .\\rename.ps1` or [join the support server](https://discord.gg/nwpnt8B).\n\n## -path\n\nThis script can change the name of files in the current directory or a specified directory. By default it will use the current directory, specify a custom one with the `-path` flag.\n\n**Command**\n\n```powershell\n.\\rename.ps1 -path C:\\rename\\this\\folder\n```\n\n**Result**\n\n```\nfolder\n| rename0.txt\n| rename1.jpg\n| rename2.pdf\n```\n\n## -scheme\n\nBy providing the `-scheme` flag you are able to choose the scheme that will be used to rename the files. In the current version you are only able to provide the name in front of the counter but later versions will include more advanced schemes.\n\n**Command**\n\n```powershell\n.\\rename.ps1 -scheme \"holidayPictures\"\n```\n\n**Result**\n\n```\ndirectory\n| holidayPictures0.jpg\n| holidayPictures1.jpg\n| holidayPictures2.jpg\n```\n\n## -extension\n\nIf you wish to only rename files of a certain type you can specify them with the `-extension` flag. Default value is \"all\"\n\n**Command**\n\n```powershell\n.\\rename.ps1 -extension \".png\"\n```\n\n**Result**\n\n```\ndirectory\n| rename0.png\n| rename1.png\n| dsc_001.jpg //Not affected\n```\n\n## -count\n\nWith this flag you can alter the first number in the count. This parameter expects an int32 value.\n\n**Command**\n\n```powershell\n.\\rename.ps1 -count 100\n```\n\n**Result**\n\n```\ndirectory\n| rename100.png\n| rename101.png\n| rename102.png\n```\n\n## -verbose [toggle]\n\nAdding the `-verbose` flag will output every change that occurs. By default this flag is not toggled.\n\n**Command**\n\n```powershell\n.\\rename.ps1 -scheme \"holidayPictures\" -verbose\n```\n\n**Ouput**\n\n```\nC:\\this\\folder\\dsc_002.jpg =\u003e C:\\this\\folder\\holidayPictures0.jpg\nC:\\this\\folder\\dsc_014.jpg =\u003e C:\\this\\folder\\holidayPictures1.jpg\n```\n\n## -force [toggle]\n\nAdding the `-force` flag will make the script run without the user confirming the settings.\n\n**Command**\n\n```powershell\n.\\rename.ps1 -force\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriaug%2Fps-mass-rename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdriaug%2Fps-mass-rename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriaug%2Fps-mass-rename/lists"}