2017-01-13 5 views
0

Powershell.exeでPowershellコードを実行します。Powershell.exeでCTRL + C Powershellスクリプトを実行する際にエラーが発生しました。

私は

Copy-Item c:\test\my_file.txt C:\Test\testPSHELL 

に入力すると、それが正常に動作します。私はそれをコピーし、それを貼り付けると

は、私は正常です

^V 

得ます。しかし、excecutingした後、私はエラーが発生します:

The term '▬' is not recognized as the name of a cmdlet, function, script file, 
or operable program. Check the spelling of the name, or if a path was  included, 
verify that the path is correct and try again. 
At line:1 char:1 

あなたはどこに問題があるのでしょうか?私は怒っている:D

+2

右クリックして貼り付けますPowershellコンソールウィンドウ。なぜでも私に尋ねないでください! –

+0

! thats great、thx! – HeadOverFeet

+1

@AndyLambこれは、コンソールウィンドウへの貼り付けがWindowsで約20年間働いたからです。 –

答えて

0

このエラーが発生した理由は、Ctrl-CがPowerShellの割り込みコマンドであるためです。 Ctrl + Cキーを押すとコマンドが終了します(これはbash、zshなどのLinuxシェルでも同じです)

関連する問題