FILE BAT CHỈNH SỮA VIDEO

FILE BAT CHỈNH SỮA VIDEO

Size
Price:

Đọc thêm

 1. XÓA TOÀN BỘ THẺ TAG ĐẲNG Ở TÊN VIDEO

@echo off

setlocal enabledelayedexpansion


for %%f in (*.mp4) do (

    set "filename=%%~nf"

    for /f "tokens=1 delims=#" %%a in ("!filename!") do set "newname=%%a.mp4"

    ren "%%f" "!newname!"

)


endlocal

pause


2.THÊM THẺ TAG VÀO VIDEO

@echo off
setlocal enabledelayedexpansion

set "target_folder=.\"
cd /d "%target_folder%"

set "prefix=dulich florida #florida #dulich #dulichbien_florida #chiphidulich #dulichmy #dulichus"

set /a count=1

for %%F in (*.mp4) do (
    set "extension=%%~xF"
    ren "%%F" "!prefix!!count!!extension!"
    set /a count+=1
)

echo Đã đổi tên xong các file .mp4.
pause

3.XUẤT TÊN CÁC VIDEO RA FILE.TXT

@echo off
setlocal enabledelayedexpansion

REM Specify the folder containing the videos
set "folderPath=./"

REM Specify the output file
set "outputFile=./video_titles.txt"

REM Clear the output file if it exists
if exist "%outputFile%" del "%outputFile%"

REM Loop through each file in the folder and use PowerShell to append the filename in UTF-8 encoding
for %%f in ("%folderPath%\*.*") do (
    set "fileName=%%~nf"
    powershell -command "Add-Content -Path '%outputFile%' -Value '!fileName!' -Encoding UTF8"
)

echo Done! Titles have been saved to "%outputFile%"
pause

0 Reviews

Biểu mẫu liên hệ

Tên

Email *

Thông báo *