Run Powershell Script from FreeCommanderXE get different result than running from Windows Explorer
Posted: 23.02.2023, 08:39
Hello,
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)
If I am running this script from FreeCommanderXE:
Result:
This is the program folder.
If I am running this script from File Explorer:
Result:
Why is the difference? How can I manage to the running script get the same as the File Explorer?
Thanks your answers,
Zoltán
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