|
Answer» Hello everyone!
I'm a begginner at programming and I've recently started learning the MS-DOS and I've been really eager to learn as much as I can since . While trying out different commands found in help section I've found the "Start" command and I've been trying to get the hang of it but I've encountered a few questions that I haven't been able to find an anwser to neither in the internet nor the help section and I was hoping if you guys could help me solve them... So here it goes :
~How do I start a whole folder worth of a specific files(in my case, music )? for example : My music catalog is LOCATED at "C:\Users\G-Man\Desktop\Music" I've learned how to start a single music file as well as starting selected music file with a selected program but couldn't make my WMP start the whole folder as a playlist .
~Is it possible to make the program select and play 1 random music (out of all music files in the active folder)?
~Is it possible to make the program locate and play music from all the folders that are WITHIN the active folder? for example : My folder "C:\Users\G-Man\Desktop\Sounds\" contains lots of other folders( like : Ambient/Chillstep/Altrock/90s etc.) and within each one of them are music files that I'd like to learn to play together in a big playlist .
I'm really sorry if someone actually made a topic covering this, if so I'll delete this emidiately . I'm really new to this so any help you could provide would be really helpfull and appreciated And english isn't my tongue language so please disregard the gramatical errors .Look into the for command.
~ for /f "delims=" %%A in ('dir /b /a:-d') do start %%A
~ set num=%random% blah blah blah for /f "skip=%num% delims=" %%A in ('dir /b /a:-d') do start %%A
~ for /r (I don't USE this much, so someone else will have to explain it.)
This stuff might not work, but should put you on the RIGHT path.Quote from: Snr1 on October 11, 2013, 01:59:37 PM ~How do I start a whole folder worth of a specific files(in my case, music )? for example : My music catalog is located at "C:\Users\G-Man\Desktop\Music" I've learned how to start a single music file as well as starting selected music file with a selected program but couldn't make my WMP start the whole folder as a playlist .
Create a playlist with a DIR /B command
Quote from: ~Is it possible to make the program select and play 1 random music (out of all music files in the active folder)?
It's possible to select a random file from a folder.
Quote from: ~Is it possible to make the program locate and play music from all the folders that are within the active folder? for example : My folder "C:\Users\G-Man\Desktop\Sounds\" contains lots of other folders( like : Ambient/Chillstep/Altrock/90s etc.) and within each one of them are music files that I'd like to learn to play together in a big playlist .
This is a GOOD program for that:
http://www.freewarefiles.com/A-Random-Music-Player_program_56805.html
|