< Back
Get-CurrentFileName
Post
NAME Get-CurrentFileName
SYNOPSIS
Use this to return the calling files name.
Use this to find the source of a calling message.
SYNTAX
Get-CurrentFileName [<CommonParameters>]
DESCRIPTION
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
[string]
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Invoke-ChainsawMessage -Debug -Message "What file is this?" -CallingFile $(Get-CurrentFileName)
Get-CurrentFileName
RELATED LINKS
SYNOPSIS
Use this to return the calling files name.
Use this to find the source of a calling message.
SYNTAX
Get-CurrentFileName [<CommonParameters>]
DESCRIPTION
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
[string]
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Invoke-ChainsawMessage -Debug -Message "What file is this?" -CallingFile $(Get-CurrentFileName)
Get-CurrentFileName
RELATED LINKS