which has the following alias:
If I run Get-Alias -Name epp I get:
but if I run epp %profile I get:
I think this is to do with my Alias.txt or my use of the Import-Alias cmdlet, but can't see where I'm going wrong.
First question – is the path to the file 'C:\Program Files\Just Great Software\EditPad Lite 7\EditPadLite7.exe' correct. Try running the file directly in PowerShell to test you have the correct path.
Second question – are you opening your PowerShell session with credentials that allow you to access the file?
Have you tried creating the alias using New-Alias rather than importing – to determine that your syntax is correct. If you can get the alias working that way then use Export-Alias to recreate your text file and try again.
Feel so stupid. The path was to EditPad Lite (which I'd deleted as I'd upgraded and deleted) and I'm using EditPad Pro (different path). Stupid, stupid, stupid – spent 2 hours wondering why this didn't work.
You must be logged in to reply to this topic.