I have a script in which i have to set the location path for the software from where it will executed. Currently what i am doing is something like this -
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
Set-Location C:\Users\ankitpar\Downloads\nuget.exe Install WindowsAzure.storage -Version 22.214.171.124
I don’t want to give the whole hardcore path. Just want to define in powershell language so kindly suggest. Any Insights would be appreciated.