Cov txheej txheem:

Random MP3 rau Xov Tooj: 7 Kauj Ruam
Random MP3 rau Xov Tooj: 7 Kauj Ruam

Video: Random MP3 rau Xov Tooj: 7 Kauj Ruam

Video: Random MP3 rau Xov Tooj: 7 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Kaum ib hlis
Anonim
Random MP3 rau Xov Tooj
Random MP3 rau Xov Tooj
Random MP3 rau Xov Tooj
Random MP3 rau Xov Tooj

Nws ua dab tsi?

Nws luam theej tawm "pes tsawg tus mp3s" los ntawm kuv phau ntawv suab paj nruag rau kuv Xov Tooj

Prelude:

Koj puas tseem nco lub sijhawm, thaum peb siv los sau mp3´s los ntawm peb cov phooj ywg los ntawm kev txuas peb cov tsav nyuaj (lossis thaum lub sijhawm LAN-Cov Neeg Ua Haujlwm), thiab feem ntau tsis mob xaj xaj, koom ua ke thiab sau peb cov khoom?

Txhua leej txhua tus muaj nws tus kheej li cas, Ib hom ntawv twg, Cov ntawv xaj khoom, Cov huab cua. Peb yuav siv thawj Filenames thiab tom qab ID3-Cim. Teev Sijhawm, Hnub, Ib Hlis ntawm tsuas yog xaj peb Cov Ntawv Sau, feem ntau yam tsis tau mloog tag nrho nws. Peb paub lub npe los ntawm lub siab thiab nyob hauv daim nplaub tshev twg los nrhiav lawv, tab sis yeej tsis mloog lawv.

Qee zaum peb tsuas yog pib Winamp thiab thawb Shuffle-Button.

Yog li ntawd, kuv muaj qhov sau ntau ntawm mp3 ntawm kuv lub Hard Drive, suab paj nruag txij thaum kuv muaj 15 xyoos txog tam sim no.

Txawm li cas los xij, kom paub tseeb, nws yuav tsis haum rau ntawm Kuv Lub Xov Tooj thiab ua siab ncaj Kuv tsis tas yuav mus ncig nrog txhua qhov ntaub ntawv ntim khoom.

Yog li: Nov yog qhov haujlwm me me kuv tau sau nrog kev pab hauv internet (Stack Overflow feem ntau).

Nws ua dab tsi?

Nws luam theej tawm ib tus lej "mp3s" los ntawm kuv phau ntawv suab paj nruag rau kuv Xov Tooj!

Txhua ob peb lub lis piam kuv pauv qhov mp3´s nrog cov tshiab, maj mam nce zuj zus los ntawm kuv cov nkauj sau. Hu nws Nostalgia!

Tab sis tsis tsuas yog qhov no! Txoj Haujlwm "txuag", lub npe twg kuv twb tau theej ib zaug thiab tab tom coj lawv tawm ntawm qhov sib npaug! Kuv tseem tuaj yeem hloov lub npe ntawm tus kheej, uas yuav raug cais tawm!

Nws tsis yog qhov haujlwm "zoo tshaj plaws" uas kuv tau ua dhau los, tab sis cia kuv piav qhia ib qib zuj zus tias yuav ua dab tsi!

Kuv zoo siab yog tias lwm tus neeg yuav ua txoj haujlwm thiab ua kom nws zoo dua

Koj yuav pom cov zip-Cov Ntaub Ntawv nrog txhua Cov Cheeb Tsam hauv cov kauj ruam no Attachment

Nws muaj:

Randommusic_withcomments.bat

robocopy.bat

Dummies-Nplaub tshev

SD-Card-Folder

Kauj ruam 1: Nco ntsoov Ua Backup

YUAV UA LI CAS

Ib thaub qab! Kuv tsis lav rau ib qho teeb meem!

Kauj ruam 2: Kho kom raug Randommusic.bat

Kho kom raug Randommusic.bat
Kho kom raug Randommusic.bat

Qhib Randommusic_withcomments.bat nrog Text-Editor thiab ua raws cov lus qhia (cov lus qhia pib nrog "REM" nyob rau hauv ntej ntawm kab kab)

Teem Musicroot rau koj Cov Ntawv Suab Nkauj. Hauv kuv li "D: / EigeneMusik / Musik / Musik_sortiert"

Teeb Playfolder rau koj Dummies-Folder. Hauv kuv li "D: / SSD_PC_sortieren / Musiktmp / dummies"

Teeb Filecount rau tus naj npawb ntawm cov ntaub ntawv koj xav theej rau koj Lub Xov Tooj. Kuv xam li no:

MP3-Cov ntaub ntawv yog ca. 3 MB ib. Yog li kuv xav siv ca. 3GB ntawm kuv daim npav SD-Chaw-Rau Suab Nkauj.

3000MB/3MB yog 1000 Cov Ntaub Ntawv. Yog li kuv teeb tsa Filecount rau 1000 lossis qis dua.

Txuag thiab tawm Cov Ntaub Ntawv.

Cov Cai ntawm Cov Ntaub Ntawv:

@echo tawm & setlocal enabledelayedexpansion

REM Musicroot = Koj Lub Suab Nkauj Qiv Tau Los

teeb "musicroot = D: / EigeneMusik / Musik / Musik_sortiert"

REM Playfolder = Koj Lub Hom Phiaj-Folder nrog rau koj Dummy-Folder

teeb tsa "playfolder = D: / SSD_PC_sortieren / Musiktmp / dummies"

REM filecount = Teem ntawm no, pes tsawg cov ntaub ntawv koj xav hloov (ntawm no 999.mp3)

set /cov filecount = 1000

REM Qhov Kev Pab Cuam Tshuam: Tsis txhob hloov dab tsi dhau los ntawm qhov no!

thawb "%musicroot%"

rau /r %% i hauv (*.mp3) ua teeb tsa /cov ntaub ntawv+= 1 & teeb tsa "$! files! = %% ~ i"

ua popd

thawb "%playfolder%"

: random kev

set /a rd =%random %%% cov ntaub ntawv+1

teeb tsa "mp3 =! $%rd%!"

yog tias tsis txhais mp3 goto: randomloop

teeb tsa "$%rd%="

rau %% i hauv ("%mp3%") ua yog muaj "%% ~ nxi" ncha "%% ~ nxi" twb muaj nyob hauv%playfolder%. & goto: randomloop

luam "%mp3%"

set /filecount- = 1

yog % filecount % gtr 0 goto: randomloop

ua popd

Kauj Ruam 3: Kho Robocopy.bat

Qhib robocopy.bat

thiab teeb tsa 2 Txoj Kev Cov Ntaub Ntawv raws li hauv qab no:

robocopy "Path to SD-Folder" "Dummy-Folder" /tsim

Hauv Kuv Qhov Case nws zoo li qhov no:

robocopy "D: / SSD_PC_sortieren / Musiktmp / SD-Card" "D: / SSD_PC_sortieren / Musiktmp / dummies" /tsim

Qhov no yuav ua li cas, yog ua 0Byte-Luam ntawm koj cov ntaub ntawv suab paj nruag tiag, uas yuav siv tom qab los ua Kev Sib Piv-Dummies rau yav tom ntej siv.

Kauj ruam 4: Khiav Randommusic_withcomments.bat

Khiav Randommusic_withcomments.bat
Khiav Randommusic_withcomments.bat

Npaj rau thawj zaug khiav!

Tam sim no tsuas yog ob npaug nyem Randommusic_withcomments.bat thiab tos kom cov khawv koob tshwm sim!

Tsis txhob txhawj xeeb, yog tias thaum xub thawj koj tsuas yog pom kab ntsais muag ntsais muag, txoj haujlwm yuav tsum mus dhau txhua yam ntawm koj cov ntaub ntawv suab paj nruag thiab ntsuas lawv ua ntej pib. Rau kuv 120Gb ntawm SDD-Tsav nws siv sijhawm 3 feeb.

Nws yuav tsum saib qee yam zoo li daim duab.

Nco tseg, tias koj yuav pom kab "Cov ntaub ntawv twb muaj lawm", thaum nws ntsib Dummy-File nrog tib lub npe hauv Cov Ntawv Dummies. Pom tseeb qhov no yuav tsis tshwm sim ntawm thawj qhov kev sib tw, txij li peb tsis tau tsim cov dummies rau tam sim no.

Tos kom txog thaum the Copying tiav lawm.

Kauj Ruam 5: Tshem Cov Ntaub Ntawv Los Ntawm Dummy rau SD Card

Txav cov ntaub ntawv los ntawm Dummy mus rau SD Card
Txav cov ntaub ntawv los ntawm Dummy mus rau SD Card
Txav cov ntaub ntawv los ntawm Dummy mus rau SD Card
Txav cov ntaub ntawv los ntawm Dummy mus rau SD Card

Thaum the Copying tiav koj yuav tsum nrhiav “filecount” -number of files in your Dummies-Folder.

Raws li koj tuaj yeem pom kuv twb tau ua haujlwm ib zaug thiab muaj Cov Ntaub Ntawv Muaj Tseeb nrog Cov Ntaub Ntawv Loj ntau dua 0 bytes thiab Dummy-Files. Tam sim no peb xav theej cov "Cov Ntaub Ntawv Muaj Tseeb" mus rau Folder "SD-Card". Txoj hauv kev yooj yim tshaj plaws yog xaj Cov Ntaub Ntawv los ntawm Qhov Loj thiab tom qab ntawd txiav thiab muab cov ntawv nrog ntau dua 0bytes.

Kauj Ruam 6: Pib Robocopy.bat

Kauj Ruam 6:

Tom qab peb txav peb cov nkauj "tiag" mus rau Folder "SD-Card" peb xav tsim cov ntaub ntawv dummy ntawm mp3´s tshiab thiab thawb lawv mus rau hauv "dummy" -Folder, yog li tom ntej no los ntawm lawv raug tshem tawm.

Txoj haujlwm no yog ua los ntawm "robocopy.bat" cov ntaub ntawv. Cia li pib nws.

Kauj ruam 7: Txhua yam ua tiav

Txhua yam ua tiav! Tam sim no txav Cov Ntaub Ntawv los ntawm "SD-Card" rau koj lub xov tooj thiab pib mloog!

Nws tsis yog qhov haujlwm "yooj yim tshaj plaws" uas kuv tau ua, tab sis cia kuv piav qhia ib qib zuj zus tias yuav ua dab tsi!

Kuv zoo siab yog tias lwm tus neeg yuav ua txoj haujlwm thiab ua kom zoo dua qub!

Pom zoo: