View Single Post
Old 09-07-2006   #1 (permalink)
=?Utf-8?B?R2lsIE5vdmFr?=


 
 

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
My System SpecsSystem Spec