[feature] mpv / recently opened

This commit is contained in:
Klesh Wong 2020-06-20 21:41:13 +08:00
parent cd1df46ba4
commit 6ef2505d71
7 changed files with 33 additions and 1 deletions

27
win/bdiso-to-mkv.ps1 Normal file
View File

@ -0,0 +1,27 @@
param (
[parameter(Mandatory=$false)] [switch] $Delete,
[parameter(Mandatory=$false)] [string] $OutFormat=".mkv",
[parameter(Mandatory=$true, Position=0)] [string] $InPath,
[parameter(Mandatory=$true, Position=1)] [string] $OutPath
)
if (-not (Test-Path -LiteralPath $InPath -Type Leaf)) {
Write-Error "Invalid Input File Path $($InPath)"
exit
}
if (-not (Test-Path -LiteralPath $OutPath)) {
Write-Error "Invalid Output Path $($OutPath)"
exit
}
if (Test-Path -LiteralPath $OutPath -PathType Container) {
$OutPath = Join-Path $OutPath ((Split-Path -Leaf $InPath) + $OutFormat)
}
$ConvertedInPath = Convert-Path -LiteralPath $InPath
$InDrive = "bluray:$((Mount-DiskImage $ConvertedInPath | Get-Volume).DriveLetter):\\"
ffmpeg.exe -i $InDrive -c:v copy $OutPath
Dismount-DiskImage $ConvertedInPath
if ($Delete) {
Remove-Item -LiteralPath $InPath
}

View File

@ -0,0 +1 @@
Remove-Item $env:AppData\Microsoft\Windows\Recent\* -Recurse

Binary file not shown.

4
win/mpv-bluray.ps1 Normal file
View File

@ -0,0 +1,4 @@
# https://sourceforge.net/projects/mpv-player-windows/files/
$v = Mount-DiskImage $args[0] | Get-Volume
D:\Programs\mpv\mpv.com "$($v.DriveLetter):\\"
Dismount-DiskImage $args[0]

BIN
win/mpv-context-menu.reg Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
# adminstration powershell:
# adminstration powershell:
# Set-ExecutionPolicy RemoteSigned
# new-item -ItemType SymbolicLink -Target "D:\Nextcloud\klesh\config\win\profile.ps1" -Path $profile