Enhancement to launching PowerShell scripts from Far Manager

The method of launching PowerShell scripts from Far Manager I have described previously has 2 important drawbacks: You can’t pass arguments to the script, and You can’t launch script in a separate window Here’s how to fix this: Start regedit, open HKCR\Microsoft.PowerShellScript.1\shell\Open\command key Set it to “C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe” “-file” “%1” %* Now you can press Shift+Enter […]

How to redirect output of console program to a file in PowerShell

At some stage I decided I need backup plan for my virtual server. After some intensive web surfing I found brilliant command line tool – s3.exe. The next step was to schedule to run it periodically, every night, when everybody is sleeping. I decided to use PowerShell. It’s new, it’s powerful, it comes pre-installed with […]