Page 1 of 2 12 LastLast
  1.    06 Aug 2017 #1
    Join Date : Aug 2017
    Posts : 3
    Windows Home 10 Upgrade

    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.    06 Aug 2017 #2
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,025
    Win 10 Pro (1703)
      My ComputerSystem Spec
  3.    06 Aug 2017 #3
    Join Date : Aug 2017
    Posts : 3
    Windows Home 10 Upgrade
    Thread Starter

    Thanks, dalchina, cmd.exe is the workaround I wanted. --Paul
      My ComputerSystem Spec
  4.    06 Aug 2017 #4
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,025
    Win 10 Pro (1703)

    Great!
      My ComputerSystem Spec
  5.    06 Aug 2017 #5
    Join Date : Feb 2017
    Home
    Posts : 480
    Windows 10 Home x64, V1709 (16299.64)

    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.    06 Aug 2017 #6
    Join Date : Aug 2017
    Posts : 3
    Windows Home 10 Upgrade
    Thread Starter

    Thanks, Clayton, even better! --Paul
      My ComputerSystem Spec
  7.    06 Aug 2017 #7
    Join Date : Feb 2017
    Home
    Posts : 480
    Windows 10 Home x64, V1709 (16299.64)

    You are most welcome Sir. You have a good day...
      My ComputersSystem Spec
  8.    06 Aug 2017 #8
    Join Date : May 2015
    Central IL
    Posts : 4,247
    Mac OS Sierra

    Easier way to pull up command is just Windows key with the X key.
      My ComputerSystem Spec
  9.    06 Aug 2017 #9
    Join Date : Jan 2015
    UK, Midlands
    Posts : 11,025
    Win 10 Pro (1703)
      My ComputerSystem Spec
  10.    06 Aug 2017 #10
    Join Date : Feb 2017
    Home
    Posts : 480
    Windows 10 Home x64, V1709 (16299.64)

    Quote Originally Posted by bro67 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


Similar Threads
Thread Forum
App data roaming file at startup?
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...
General Support
Learning Powershell, for an old DOS BAT-file guy
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...
General Support
File History Backup Won't Save any data
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...
Backup and Restore
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 21:03.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums