micneu
Goto Top

Powershell - Scripname - Variable

Hallo Leute,

ich benötige von euch eine info.

in linux habe ich eine variable $0 in der ist der scriptname gespeichert.
existiert in powershell auch so eine variable?

gruß michael

Content-Key: 155873

Url: https://administrator.de/contentid/155873

Printed on: April 24, 2024 at 13:04 o'clock

Member: bastla
bastla Nov 26, 2010 at 22:04:21 (UTC)
Goto Top
Hallo micneu!

Hilft Dir "$myInvocation.MyCommand.Definition"?

Grüße
bastla
Member: micneu
micneu Nov 26, 2010 at 22:15:39 (UTC)
Goto Top
ja super habe es so wie ich es wollte.

$myInvocation.MyCommand.Name

gruß michael