8
如何檢索當前在powershell中運行的功能的名稱?下面是我想要的一個例子:顯示當前正在執行的功能的名稱
Function write-FunctionName
{
write-host "The name of this function is: *SomethingGoesHereButWhat?*"
}
然後當我執行它,它會顯示這樣的:
>write-FunctionName
The name of this function is: write-FunctioName
>
可以這樣做?如果是這樣如何?
[有沒有辦法從函數內檢索PowerShell函數名?](http://stackoverflow.com/questions/3689543/is-there-a-way-to-retrieve-a- powershell-function-name-from-within-a-function) – 2017-01-13 00:40:17