- Dec 30, 2004
- 1,095
- 0
- 0
I want to make some m3u files by typing dir /b *.mp3, and sending that output to a file. Is there some way I can do this with cmd?
Originally posted by: Thyme
Might be less of a headache to do it in perl.
Might be less of a headache to do it in perl.
Originally posted by: networkman
dir /b *.mp3 > music.txt
The > is used to re-direct output, be it to a file, a printer, or whatever else. No quotes are needed either in the command line or in a script. I tested it on my machine before posting in case my memory was corrupted.![]()
Originally posted by: TGS
Originally posted by: networkman
dir /b *.mp3 > music.txt
The > is used to re-direct output, be it to a file, a printer, or whatever else. No quotes are needed either in the command line or in a script. I tested it on my machine before posting in case my memory was corrupted.![]()
He says he's having problems with single quotes in the file name. Encapsulation in double quotes should allow him to capture the name, without parsing the single quotes/apostrophes
Where's the apostrophe key?
Originally posted by: Nothinman
Might be less of a headache to do it in perl.
If only Windows came with a decent scripting language by default.
Originally posted by: Thyme
Originally posted by: Nothinman
Might be less of a headache to do it in perl.
If only Windows came with a decent scripting language by default.
That'd be fantastic.
It does.. Windows Script Host, or VB Scripting.
Originally posted by: Nothinman
It does.. Windows Script Host, or VB Scripting.
IMO VB and JS are not 'decent' languages.
You're right. Batch files are so much more evolved.
Do you care to back that up with anything? If you don't need a GUI, and need a reliable language to perform quick/administrative tasks, then VB or JS are definately the language of choice on the Windows platform. Throw it into an HTA file and you have a quick web app. Throw some API calls and you can query information on any piece of hardware in your system, change Windows product keys, copy folders and files, move users to different OUs in AD, join domains, create XML files, include proper error handling, etc.