ncpwsh is a tool to run PowerShell scripts without showing the console window.
- Save the PowerShell script you want to run, for example as
c:\foo\bar.ps1. - Copy
ncpwsh.exetoc:\foo\bar.exe. - Run
bar.exeto executebar.ps1without showing the console window.
- The console window is not displayed, so it does not clutter the screen.
- Can be used as an .exe file, allowing for extension association and D&D target usage.
You can save disk space by creating symbolic links using the mklink command instead of copying multiple ncpwsh.exe files.
ncpwsh は、PowerShell スクリプトをコンソールウィンドウを表示せずに実行するためのツールです。
- 実行したい PowerShell スクリプトを
c:\foo\bar.ps1のように保存します。 ncpwsh.exeをc:\foo\bar.exeにコピーします。bar.exeを実行すると、コンソールウィンドウを表示することなく、bar.ps1が実行されます。
- コンソールウィンドウが表示されないため、画面が邪魔になりません。
- .exe ファイルとして実行できるため、拡張子関連付けや D&D のターゲットとして使用できます。
複数の ncpwsh.exe をコピーする代わりに、mklink コマンドを使用してシンボリックリンクを作成することで、ディスク容量を節約できます。