Question:

How to make a windows batch file?

by  |  earlier

0 LIKES UnLike

I need the batch file to copy (to a text file) all the files in a particular folder (there are numerous sub folders and different numbers of files in each subfolder - I need a list of them all!!), I would also like the batch file to save the paths of these files

Can anyone help?

G

 Tags:

   Report

2 ANSWERS


  1. dir /b /s c:/musicandvideo/*.mp* > list.txt


  2. Click on the Start button and select RUN.  In the Open box type: CMD and press Enter

    This will open a DOS window.  In the DOS window type:

    dir/s/b  > filename.txt

    /S is to recurse the subdirectories and /B removes the summary info

    The > symbol says to "PIPE" the output to the filename that follows.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.