How to redirect a file of input data in PowerShell?

Page 2 of 2 FirstFirst 12

  1. Posts : 42,992
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #11

    See tutorial above.
      My Computers


  2. Posts : 9
    Windows 7 Ultimate
       #12

    You can't hook a file directly to stdin, but you can still access stdin.Get-Content input.txt | ./program > output.txt
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:51.
Find Us




Windows 10 Forums