|
How to convert %~dp0
For those who may be unfamiliar, if I run a dos batch script that's not in
my current working directory, then I can include this in the script to refer
to the directory that the script is actually in:
%~dp0
Is there a way to do this in PowerShell?
Thanks,
Gil |