About 342,000 results
Open links in new tab
  1. How can I bulk rename files in PowerShell? - Stack Overflow

    Apr 13, 2014 · Rename-Item c:\misc\*.xml *.tmp I basically want to change the extension on every files within a directory to .tmp instead of .xml. I can't seem to find a straight forward way to do this in …

  2. powershell - Rename multiple files in a folder, add a prefix (Windows ...

    Jan 2, 2014 · Open the windows menu. Type: "PowerShell" and open the 'Windows PowerShell' command window. Goto folder with desired files: e.g. cd "C:\house chores" Notice: address must …

  3. rename - Recursively renaming files with Powershell - Stack Overflow

    Get-ChildItem -Recurse -Include *.ps1 | Rename-Item -NewName { $_.Name.replace(".ps1",".ps1.bak") } This avoids using ForEach-Object by passing a scriptblock for the parameter NewName. PowerShell …

  4. Powershell - Rename filename by removing the last few characters

    Oct 21, 2015 · This would rename all .txt files in the directory, remove the last 6 characters of the file name, replace any remaining underscore in the filename with a space but still retain the file extension.

  5. Replace Part of File Name Powershell - Stack Overflow

    26 I do not have PowerShell 1.0 to test, but assuming you are running this in the folder where files reside, you can try:

  6. How to rename files with a conditional statement in PowerShell

    Oct 16, 2019 · 1 I am trying to rename a whole lot of files all located in one folder but in different subfolders. The files should be renamed so that their name consists of the foldername + the original …

  7. powershell v2 - rename a file whose name matches a string containing …

    Dec 19, 2014 · I'm trying to create a script to rename a file that matches a given filename, with a wildcard character. e.g. I have a folder containing the following files: 201412180900_filename_123.log

  8. Use Regex / Powershell to rename files - Stack Overflow

    Use Regex / Powershell to rename files Asked 14 years, 9 months ago Modified 5 years, 7 months ago Viewed 53k times

  9. Replace or delete certain characters from filenames of all files in a ...

    The PowerShell answers are good, but the Rename-Item command doesn't work in the same target directory unless ALL of your files have the unwanted character in them (fails if it finds duplicates).

  10. Is there a single PowerShell command to copy and rename files?

    Jan 21, 2013 · The next step would be to then use a different CSV file to rename these files based on their current file name. Is there a command that will allow me to copy and item and rename it as well?