Wednesday, December 2, 2009

How to copy Multiple Files/Folder names in bulk to Notepad file

 Reading one of this blog the other day i stumbled onto this title: “How to copy Multiple Files/Folder names in bulk to Notepad file“. I remember my self wanting to write a small app that would do that exact thing because i needed it a couple of times. At that time i decided not to waste any time on it since i thought that no one would need it actualy. But reading this post i was convinced i should write it since it could be usefull. It took me about an hour and here is what i came up with.

create a bat file in the folder u want list
for eg: if u want to take the list of a folder called
test than go to the folder test and inside the folder test create a bat files called test
Than in the bat file type dir /b >list.txt and save than double click. It will automatically generate the name..


Note: To create a bat file
1. Click Start
2. Click Run
3. Type: notepad and press enter.
After that in the notepad u write what ever u want to write in the bat files.. to generate automatic list type dir /b >list.txt
4.Go to File, Click Save as And save it as test.bat
5. Thats done so double click the bat file..


You can use this list to create an m3u file to play a group of songs. This is the procedure to create an m3u file:
  1. Click Start, point to Programs, point to Accessories, and then click Notepad.
  2. Create a text file that includes the full path to the files you want to include.
  3. On the File menu, click Save. Save the file with one of the following extensions, based on the types of files included.
    • For files of type .wav, .mp3, .mpg, or .mpeg, use the extension .m3u.
    • For files of type .asf, use the extension .asx.
For example, to sequentially play the Chord.wav, Ding.wav, and Chimes.wav files, include the following lines:
c:\windows\media\chord.wav
c:\windows\media\ding.wav
c:\windows\media\chimes.wav
Save this file as Filename.m3u, where Filename is the name you want to use for the file. When you double-click this file or open it in Windows Media Player, it plays the files in order from the top of the file to the bottom.

No comments:

Google