Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

in our regular work we have 500 to 600 hundred voice files we need to distribute in user so we are doing copy past one one files manually we have list of files copy source and destination. now we need batch files for do our work easy.any can help me..?

batch files script for Copy files from one directory in multiple directories

share|improve this question
    
What batch language and OS? –  Mark Aug 1 '11 at 18:43
    
what does "distribute in user" mean? –  PA. Aug 1 '11 at 22:50
add comment

migrated from stackoverflow.com Aug 29 '11 at 7:37

This question came from our site for professional and enthusiast programmers.

1 Answer

Here's something to get you started. For each entry in a list of files, copy that file somewhere else (in MSDOS batch scripting):

SET DEST=C:\foo
REM Create list of resources to build
SET FILELIST=tmp
ECHO File1.doc > %FILELIST%
ECHO File2.doc >> %FILELIST%
ECHO File3.doc >> %FILELIST%

REM Copy each file
for /F "tokens=1" %%F in (%FILELIST%) do (
  ECHO + Copying %%F
  copy /Y "%%F" %DEST%
)
DEL /F %FILELIST% > nul

Hope that helps :)

Perhaps you may want to read more here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.