Script directory for a PowerShell profile. https://blog.lksz.me/keeping-track-of-everything/#-mypsscriptroot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
171 B

  1. [CmdletBinding()]param([string]$Path)
  2. try {
  3. get-item $Path -Force -ErrorAction Stop |
  4. Select-Object -ExpandProperty FullName
  5. } catch {
  6. $_.targetObject
  7. }