Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to do some more or less easy replacements in certain files on Windows machines. This is part of an automated software build process, so to be able to reproduce it on all build mashines I absolutely have to rely on tools that are part of windows Windows Vista and Windows 7. No additional software installation (even if it just requires copying onto the mashine) is possible.

I just need to replace one guid with another and additionaly replace a part-string another easy to recognize pattern.

What would you suggest? Are there any easy commandline-only tools to do that in windows or do I have to write a powershell script? If the latter, do you have a good reference on powershell (never used it? ).

share|improve this question
up vote 1 down vote accepted

I would recommend you to use Windows PowerShell. It's part of the OS since Windows Vista and Windows 7 (can be also installed on Windows XP). PowerShell is a really powerfull object oriented scripting evironment, based on the .NET Framework, for the Windows operating system (simillar to the Linux Bash). There is a lot of documentation availible from Microsoft on how to use PowerShell.

There is also a good free PowerShell Book availible here.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .