Echo `Ctrl` + click-able hyperlink to the Windows Terminal PowerShell & pwsh (PowerShell 5 & 7) ------------------------------------ ``` $my_path = $pwd Write-Output "file:///$($my_path -replace '\\','/')" $my_url = $my_path -replace '\\','/' Write-Output "file:///${my_url}" ``` Batch file ---------- ```bat set "MY_PATH=%CD%" echo file:///%MY_PATH:\=/% set "MY_URL=%MY_PATH:\=/%" echo file:///%MY_URL% ``` See also -------- https://learn.microsoft.com/en-us/windows/terminal/tips-and-tricks#open-a-hyperlink