Files
mpv.net/src/Scripts/PowerShell/show-in-file-explorer.ps1
2021-07-15 14:40:59 +02:00

14 lines
310 B
PowerShell

# Shows the current file in File Explorer
# In input.conf add: <key> script-message show-in-file-explorer
$code = {
if ($args[0] -eq 'show-in-file-explorer')
{
Start-Process explorer.exe '/n,','/select,',"$($mp.GetPropertyString('path'))"
}
}
$mp.RegisterEvent("client-message", $code)