I would like to ask why get I different result if I run powershell script from FreecommanderXE than from Windows Explorer.
The PowerShell script, and location (C:\Test\powershell.ps1)
Code: Select all
$curDir = Get-Location
write-host "$curDir"
$a = Read-Host
Result:
Code: Select all
C:\Programok\FreeCommanderXE
If I am running this script from File Explorer:
Result:
Code: Select all
C:\Test
Thanks your answers,
Zoltán