Redirecting standard input\output in Windows PowerShell

You can’t hook a file directly to stdin, but you can still access stdin.

Get-Content input.txt | ./program > output.txt

Leave a Comment