While on the subject, I noticed things like UserAppDataPath are not relevant
inside a cmdlet.
AppDir:C:\Documents and Settings\Administrator\Application Data\Microsoft
Corporation\Microsoftr Windowsr Operating System\6.0.5430.0
I realize this is because it is probably using the Powershell.exe info as it
is the exe. However, it would seem like this should be fixed somehow to
allow cmdlets to use this info consistent with other applications.
William Stacey [C# MVP]
"Jeff Jarrell" <jjarrelS...
@yahoo.com> wrote in message
| Inside a basic .PS1 script how do I determine the location of the PS1.
| i am doing is I want to locate a config file which will be located in the
| same dir as the script.