Current script location

Started by siocnarf, November 25, 2016, 11:36:48 AM

Previous topic - Next topic

siocnarf

Hi,

Is it a way to get there the location of the running Winbatch script?
With Powershell, it would be-->  $scriptDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
But with Winbatch?

Thanks,


td

Use the DirScript function.  Please see the DirScript function's topic in the Consolidated WIL help file for details.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade