无人小站

一键更新 Potplayer(已过时)

JP-Liu 批处理PotplayerAria2FastCopy7-Zip

一键更新 Potplayer

  • 2017.04.10 感觉 Potplayer 一直没有更新,原来换了地址了,新的皮肤不太好看……
  • 2019.04.13 个人已不再使用 Potplayer 了,脚本已不适用。

使用 Potplayer 大概有5年的时间了,一直使用的是闻雷的绿色版,城通网盘的分享不太好用,于是就利用提供的制作 Potplayer 便携版的批处理,配合其他工具写了个自动下载的脚本。

@echo off
::设定aria2,7z,FastCopy,Potplayer的路径
set aria2=d:\1-Program\0-CommandLineTools\Aria2\aria2c.exe
set zipper=d:\1-Program\0-CommandLineTools\7-Zip\7z.exe
set fastcopy=d:\1-Program\TotalCMD\plugins\FastCopy\FastCopy.exe
set potplayerpath=d:\1-Program\Potplayer

set temppot=%temp%\Pot
del /s /q %temppot%

::Potplayer的下载链接
set Potplayerlink=http://get.daum.net/Potplayer/v4/PotplayerSetup.exe
set FFmpegMininumLink=http://get.daum.net/Potplayer/v3/Module/FFmpeg/FFmpegMininum.dll

::下载并解压,合并文件
set PotplayerSet=%temppot%\PotplayerSetup.exe
%aria2% --split=15 --max-connection-per-server=15 --dir=%temppot% %Potplayerlink%
%aria2% --split=15 --max-connection-per-server=15 --dir=%temppot%\exaPotplayerSet\Module\FFmpeg %FFmpegMininumLink%
%zipper% x %PotplayerSet% -o%temp%\pot\exaPotplayerSet -y
copy %potplayerpath%\PotplayerMini.ini %temp%\pot\exaPotplayerSet\PotplayerMini.ini
copy %potplayerpath%\PotplayerUpdate.bat %temp%\pot\exaPotplayerSet\PotplayerUpdate.bat

::删除不需要的文件
rd /s /q %temp%\pot\exaPotplayerSet\$PLUGINSDIR
rd /s /q %temp%\pot\exaPotplayerSet\$SYSDIR
rd /s /q %temp%\pot\exaPotplayerSet\$TEMP
rd /s /q %temp%\pot\exaPotplayerSet\[LICENSE]
rd /s /q %temp%\pot\exaPotplayerSet\Html
if exist %temp%\pot\exaPotplayerSet\Logos\Potplayer_1.png (del /f /q %temp%\pot\exaPotplayerSet\Logos\Potplayer.png & rename %temp%\pot\exaPotplayerSet\Logos\Potplayer_1.png Potplayer.png) else (go on)
del /f /q %temp%\pot\exaPotplayerSet\Skins
del /f /q %temp%\pot\exaPotplayerSet\UrlList
rename %temp%\pot\exaPotplayerSet\History\Chinese(Simplified).txt Chinese(Simplified).bak
rename %temp%\pot\exaPotplayerSet\History\English.txt English.bak
rename %temp%\pot\exaPotplayerSet\History\Korean.txt Korean.bak
rename %temp%\pot\exaPotplayerSet\Language\Chinese(Simplified).ini Chinese(Simplified).bak
rename %temp%\pot\exaPotplayerSet\Language\English.ini English.bak
rename %temp%\pot\exaPotplayerSet\Language\Korean.ini Korean.bak
del /f /q %temp%\pot\exaPotplayerSet\History\*.txt
del /f /q %temp%\pot\exaPotplayerSet\Language\*.ini
rename %temp%\pot\exaPotplayerSet\History\Chinese(Simplified).bak Chinese(Simplified).txt
rename %temp%\pot\exaPotplayerSet\History\English.bak English.txt
rename %temp%\pot\exaPotplayerSet\History\Korean.bak Korean.txt
rename %temp%\pot\exaPotplayerSet\Language\Chinese(Simplified).bak Chinese(Simplified).ini
rename %temp%\pot\exaPotplayerSet\Language\English.bak English.ini
rename %temp%\pot\exaPotplayerSet\Language\Korean.bak Korean.ini
md %temp%\pot\exaPotplayerSet\Module\FFmpeg
del /f %temp%\pot\exaPotplayerSet\[NSIS].nsi
del /f %temp%\pot\exaPotplayerSet\uninstall.exe.nsis
del /f %temp%\pot\exaPotplayerSet\Daum_Movie.resource
del /f %temp%\pot\exaPotplayerSet\Loading.swf
del /f %temp%\pot\exaPotplayerSet\Logo.swf
del /f %temp%\pot\exaPotplayerSet\LogoMini.swf
del /f %temp%\pot\exaPotplayerSet\Alarm.wav
del /f %temp%\pot\exaPotplayerSet\PotScreenSaver.scr
del /f %temp%\pot\exaPotplayerSet\FileList.txt
del /f %temp%\pot\exaPotplayerSet\LGPL.TXT
del /f %temp%\pot\exaPotplayerSet\D_Exec.exe
del /f %temp%\pot\exaPotplayerSet\DaumDownloader.exe
del /f %temp%\pot\exaPotplayerSet\DesktopHook.exe
del /f %temp%\pot\exaPotplayerSet\KillPot.exe
del /f %temp%\pot\exaPotplayerSet\LogManager.exe
del /f %temp%\pot\exaPotplayerSet\Potplayer.exe
del /f %temp%\pot\exaPotplayerSet\PotplayerXP.exe
del /f %temp%\pot\exaPotplayerSet\SetTime.exe
del /f %temp%\pot\exaPotplayerSet\AudFilt.dll
del /f %temp%\pot\exaPotplayerSet\DaumCrashHandler.dll
del /f %temp%\pot\exaPotplayerSet\DChat.dll
del /f %temp%\pot\exaPotplayerSet\DMVDLoader.dll
del /f %temp%\pot\exaPotplayerSet\LibNCG.dll
del /f %temp%\pot\exaPotplayerSet\NCGDownloadDLL.dll

::利用FastCopy来同步文件夹的内容
%fastcopy% /cmd=sync /no_ui /error_stop /bufsize=128 /log=FALSE /disk_mode=auto /speed=full /auto_close %temppot%\exaPotplayerSet\*.* /to=%potplayerpath%\

del /s /q %temppot%
exit
JP-Liu
懒人一个