Created
January 18, 2015 03:52
-
-
Save acauamontiel/f801746c75b62b201faa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$file = '.\fileName.lst' # Caminho relativo do arquivo | |
$oldName = 'Old Name' # Nome a ser alterado | |
$newName = Read-Host 'Novo nome' | |
(gc $file).replace($oldName, $newName) | sc $file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment