Reputation: 11
I have a hard time trying to run PowerShell Scripts from the "Run Command" within Komodo Edit on Windows 7.
The command that I am using is:
powershell -File "%F"
When I run it, it does not return anything to the console, it just keeps running till I terminate it.
I have tested it, with the following simple script:
Write-Host "Hello World"
Upvotes: 1
Views: 783
Reputation: 13452
This is a known issue where powershell.exe
waits for a STDIN prompt to return in certain cases, causing it to hang when no input is provided.
Use -InputFormat None
to indicate STDIN will not be used:
powershell.exe -InputFormat None -File "%F"
Forward null input from the outer command scope so that STDIN returns:
powershell.exe -File "%F" < NUL
Upvotes: 1