Hi ,
I want to execute a powershell script from any path from local .
Here “src\Customization\Source” is the fixed path
function bat_file { $path = "C:\Programs\data\Git\tc-pdm\src\Customization\Source" } bat_file
For running the abc.ps1 file we need to provide the whole path " cd C:\Programs\data" and then ".\abc.ps1 " in the powershell console
But now i should be able to run the abc.ps1 file even if the path is different “cd C:\Programs\temp1”.
I was thinking if we can use PSScriptRoot concept for this .