1.

Solve : BAT file HELP !!!?

Answer» HELLO i am new

i'm write from poland and my english is not wery well .

i need help

i must write bat FILE, it must find mp3 files on all c disk and copy this files on one folder in drive d .but i don't know how do it.

please help me .

p.s. Merry Xmass to all This may help you out:

Code: [Select]
@echo off
for /f "delims=" %%i in ('dir c:\*.mp3 /s /b') do copy %%i d:\folder


Be sure to change d:\folder to a real folder on your machine.

Good luck. i hawe a file who can find some files on fdd it is look that

@echo off
echo .........................
echo SPRAWDZAM ZAWARTO—Ź DYSKU
echo .........................
dir a: /p
pause

if exist a:\*.* goto copy
if not exist a:\*.* goto FINAL

:copy
md Koszyk
md Roboczy
copy A:\*.* E:\Koszyk

if exist E:\Koszyk\*.jpg goto kopiuj
if not exist c:\koszyk\*.jpg goto gify

:kopiuj
md E:\Roboczy\Jpeg
copy E:\Koszyk\*.jpg E:\Roboczy\Jpeg

:gify
if exist E:\Koszyk\*.gif goto powiel
if not exist E:\Koszyk\*.gif goto HTML

:powiel
md E:\Roboczy\Gify
copy E:\Koszyk\*.gif E:\Roboczy\Gify

:html
if exist E:\Koszyk\*.html goto strony
if not exist c:\koszyk\*.html goto teksty

:strony
md E:\Roboczy\Html
copy E:\Koszyk\*.html E:\Roboczy\Html

:teksty
if exist E:\Koszyk\*.txt goto txt
if not exist E:\Koszyk\*.txt goto INNE

:txt
md E:\Roboczy\Teksty
copy E:\Koszyk\*.txt E:\Roboczy\Teksty[/color]


but i need a program who can find all mp3 files on c disc and coly this files to d:\mp3\ and delete copy files from c disc

@echo off
for /f "delims=" %%i in ('dir c:\*.mp3 /s /b') do copy %%i d:\folder

i create d:\folder

but if i run bat file i see text 'i can find a file'

but if i write 'dir c:\*.mp3 /s /b' it find all mp3 files

why it don't wont copy this files to d:/folder/.......i'm using win xp sp1Sorry about that. I was so intent with the embedded spaces on the front end, I neglected the backend.

Code: [Select]
@echo off
for /f "delims=" %%i in ('dir c:\*.mp3 /s /b') do (
copy "%%i" d:\mp3
del "%%i"
)


Hope this helps. [glb][/glb]it's work fine thanks


Discussion

No Comment Found