0
我無法通過此錯誤消息。如何獲得「hello world」腳本從powershell中的命令行運行?
感謝
The term 'power-date.ps1' 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 t
hat the path is correct and try again.
At line:1 char:15
+ power-date.ps1 <<<<
+ CategoryInfo : ObjectNotFound: (power-date.ps1:String) [], CommandNotFound
Exception
+ FullyQualifiedErrorId : CommandNotFoundException
除非你使用前綴與他們
你有一個名爲'power-date.ps1'的'.ps1'文件嗎? – Bill
是的,我在不同的位置。只是爲了確保我可以從命令行找到它,因爲Windows不喜歡空白區域 – user2386748
我不確定'windows不喜歡空白區域'是什麼意思。 Windows在沒有問題的情況下處理命令中的空格,並且在很長一段時間內完成了這些操作。 –