I have a powershell script located at d:\temp
When I run this script, I want the current location of the file to be listed. How do I do this ?
For example this code would accomplish it in a dos batch file; I am trying to convert this to a powershell script..
FOR /f "usebackq tokens=*" %%a IN ('%0') DO SET this_cmds_dir=%%~dpa
CD /d "%this_cmds_dir%"