- I want to achieve this behavior: - Executable.exe<inputfile.txt- using Command Prompt it works but fails in Windows PowerShell, why? How to achieve this behavior in PowerShell? 
- In PowerShell I want to use - gdbto debug the- executable.exe(built usign -g arguments), but with- inputfile.txtas arguments to executable. How to achieve both of these?
            Asked
            
        
        
            Active
            
        
            Viewed 1,174 times
        
    0
            
            
         
    
    
        amarvashishth
        
- 5
- 5
- 
                    For question 1, see http://stackoverflow.com/questions/6763086/why-is-input-redirect-not-implemented-in-powershell . `Get-Content inputfile.txt | Executable.exe` – Mark Plotnick Feb 14 '15 at 23:13
- 
                    For questino 2, see http://stackoverflow.com/questions/4521015/passing-arguments-to-program-run-through-gdb – Beginner Feb 15 '15 at 11:49