Windows 10: How to redirect a file of input data in PowerShell? Solved

Page 1 of 2 12 LastLast

  1. Posts : 3
    Windows Home 10 Upgrade
       06 Aug 2017 #1

    How to redirect a file of input data in PowerShell?


    In the past, before Windows 10 update, we had Command Prompt, but now we have PowerShell instead. I would like to know how to use a redirected file of input data into an EXE program. I used to write 'C:\Users\Owner\desktop>program.exe < input.dat' but the system says that '<' is not valid and reserved for future use. How do I get around this?
      My ComputerSystem Spec

  2.   My ComputerSystem Spec


  3. Posts : 3
    Windows Home 10 Upgrade
    Thread Starter
       06 Aug 2017 #3

    Thanks, dalchina, cmd.exe is the workaround I wanted. --Paul
      My ComputerSystem Spec

  4.    06 Aug 2017 #4

    Great!
      My ComputerSystem Spec


  5. Posts : 577
    Windows 10 Home x64 Version 1709 (OS Build 16299.371)
       06 Aug 2017 #5

    Also, Command Prompt is still here.

    Start Menu>Windows System>Command Prompt>Right Click>More>Run As Administrator

    Click image for larger version. 

Name:	Cmd.png 
Views:	0 
Size:	134.5 KB 
ID:	147424
      My ComputersSystem Spec


  6. Posts : 3
    Windows Home 10 Upgrade
    Thread Starter
       06 Aug 2017 #6

    Thanks, Clayton, even better! --Paul
      My ComputerSystem Spec


  7. Posts : 577
    Windows 10 Home x64 Version 1709 (OS Build 16299.371)
       06 Aug 2017 #7

    You are most welcome Sir. You have a good day...
      My ComputersSystem Spec


  • Posts : 4,474
    Mac OS High Sierra 10.13.5
       06 Aug 2017 #8

    Easier way to pull up command is just Windows key with the X key.
      My ComputerSystem Spec

  •   My ComputerSystem Spec


  • Posts : 577
    Windows 10 Home x64 Version 1709 (OS Build 16299.371)
       06 Aug 2017 #10

    bro67 said: View Post
    Easier way to pull up command is just Windows key with the X key.
    Not on this machine since CU

    Click image for larger version. 

Name:	Capture.PNG 
Views:	0 
Size:	99.7 KB 
ID:	147436
      My ComputersSystem Spec


  •  
    Page 1 of 2 12 LastLast

    Related Threads
    So i installed windows 10 and when i get to my desktop i'm ask what i want to do with a app data roaming file. The file info is 77b8df.1945a74. I tried opening it but i get a blank page. I ran a virus and mall ware scans and nothing. What can i do...
    So I go back to the days of DOS 6.2, and I've done a lot of BAT files since .:nerd: But I keep reading about Powershell. I've looked at some MS webpages for learning Powershell, and the learning curve seems pretty steep.:sick: Can anyone...
    After upgrading my laptop to Win 10 I found File History and activated it. Seemed to be working fine until 8/15 when the backups stopped. Tried to get it to backup further but, no way so after trouble shooting without success I deleted the back up...
    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 07:41.
    Find Us