FILE BAT CHỈNH SỮA VIDEO

FILE BAT CHỈNH SỮA VIDEO

Size
Price:

Đọc thêm

0. XOÁ TOÀN BỘ ICON , MOJIE

@echo off

chcp 65001 > nul

setlocal enabledelayedexpansion


echo Dang xu ly: Xoa Icon - Giu Hashtag - Don khoang trang...

echo --------------------------------------------------


powershell -NoProfile -ExecutionPolicy Bypass -Command "Get-ChildItem -Filter '*.mp4' | ForEach-Object { $n = $_.BaseName -replace '[^\x20-\x7E]', ''; $n = ($n -replace '\s+', ' ').Trim(); $newName = $n + $_.Extension; if ($_.Name -ne $newName) { try { Rename-Item -Path $_.FullName -NewName $newName -ErrorAction Stop; Write-Host 'Thanh cong: ' $_.Name ' -> ' $newName -ForegroundColor Green } catch { Write-Host 'Loi trung ten: ' $_.Name -ForegroundColor Yellow } } }"


echo --------------------------------------------------

echo Hoan thanh!

pause 

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

:: --- PHẦN CÀI ĐẶT TAG ---
:: Bạn có thể thay đổi các hashtag ở giữa dấu ngoặc kép bên dưới.
:: Lưu ý: Nên có một dấu cách ở đầu tiên.
set "tags= #Mikaela #MikaelaGirl #MikaelaReels"
:: -----------------------

echo Dang xu ly cac file video .mp4...
echo ------------------------------------------

:: Duyệt qua tất cả các file có đuôi .mp4 trong thư mục
for %%F in (*.mp4) do (
    set "old_name=%%~nF"
    set "extension=%%~xF"

    :: Kiểm tra xem trong tên file cũ đã có hashtag nào chưa (ví dụ tìm dấu #)
    :: Nếu chưa có thì mới thêm để tránh bị lặp tag nhiều lần
    echo !old_name! | findstr /C:"#" >nul
    if errorlevel 1 (
        echo Dang them tag cho: "%%F"
        ren "%%F" "!old_name!!tags!!extension!"
    ) else (
        echo Bo qua: "%%F" (File nay da co hashtag roi)
    )
)

echo ------------------------------------------
echo Da xong! Tat ca video da duoc gan tag.
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 *