Reputation: 429
I know this must be easy, i have the following:
ls | % { file.exe $_.fullname }
What i want to do is just run the file.exe command on all files in the current folder. Here is my problem: in powershell ISE console everything works out. The results from the file.exe (console program) are shown in the results pane for all files in the folder. When i run the command in my shell though nothing is shown. All the results are redirected dont know where. After that, whatever command i type in the shell i get no output. Help!
Upvotes: 0
Views: 17
Reputation: 3043
Try opening PowerShell using PowerShell -NoProfile
. Executing this command will open the shell igonring you profile script. This could be because of some conflicting setting in you profile script, if any.
Upvotes: 1