for /f %%a in ('mshta "javascript:var s=clipboardData.getData('text');if(s)new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(s);close();"^|more') do (set name=%%a)
for /f "delims=" %%a in ('mshta "%~f0"') do set path1=%%a
for /f "delims=" %%a in ('dir "!path1!" /b') do (
if %%a LSS 10 (ren "!path1!\%%a" 00%%a) else (
if %%a LSS 100 (ren "!path1!\%%a" 0%%a) ))
del "!path1!\index.m3u8" /q
copy /b "!path1!\*.*" %name%.mp4
pause>nul
<script>
var Shell = new ActiveXObject("Shell.Application");
var Folder = Shell.BrowseForFolder(0, "请选择文件夹", 0); //起始目录为:桌面
if (Folder != null) {
Folder = Folder.items();
Folder = Folder.item();
Folder = Folder.Path;
new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(Folder);