About 44,000,000 results
Open links in new tab
  1. Powershell Batch Add/Append text to a file name

    Jan 7, 2018 · I am trying to batch add text to the titles of several files in a folder. My code works for command line but not PowerShell: for %a in (*.avi, *.mta) do ren "%a" "My Title - %a"

  2. Add-Content (Microsoft.PowerShell.Management) - PowerShell

    The Add-Content cmdlet appends content to a specified item or file. Content can be passed in from the pipeline or specified by using the Value parameter. If you need to create files or …

  3. Add Suffix/Prefix to All Files in a Folder in Windows 11/10

    May 30, 2024 · The main steps to add a suffix to files with PowerShell involve the Get-ChildItem and Rename-Item cmdlets. This cmdlet gets all items (files and directories) in a specific place. …

  4. How to add certain characters to names of all files in a folder

    Mar 10, 2023 · I have tried rearranging the following command for PowerShell: [ref]$i = 1; gci -file | Rename-Item -NewName {'{0:D4} - {1}' -f $i.Value++, $_} but apparently I don't fully …

  5. PowerShell: How do I append a prefix to all files in a directory?

    May 8, 2017 · get-childitem *.FileExtension_ | foreach { rename-item $_ $.Name.Replace($.Name,"Prefix_" + $_.Name) } Replace FileExtension_ with the extension …

  6. How to Rename Files With PowerShell - How-To Geek

    To give a new name to a specific file on your PC, use PowerShell’s Rename-Item cmdlet. This cmdlet takes your file’s full path, the new name you want to assign, and renames your file. To …

  7. How to Append Text to Files in PowerShell - SPGuides

    Apr 18, 2025 · Learn how to append text to files in PowerShell using commands like Add-Content and Out-File -Append. Includes examples and tips for efficient file handling.

  8. Rename Files and Folders in PowerShell with Rename-Item

    Rename-Item : Cannot create a file when that file already exists. To rename a file with a hidden or read-only attribute set, add the -Force parameter. Also note that the NewName parameter …

  9. How to Append Text to a File in PowerShell?

    Jun 8, 2024 · To append to a text file in PowerShell, use the Add-Content cmdlet. This cmdlet allows you to add text to the end of a file without overwriting the existing content. Here is an …

  10. Effortlessly Append to a File in PowerShell

    In PowerShell, you can append text to a file using the `Add-Content` cmdlet, which adds specified content to the end of a file without overwriting its existing data. Here's a code snippet …

  11. Some results have been removed