Question:
Batch file question? How do you insert a music file into the file?
Dylan
2010-12-19 12:37:22 UTC
How do you insert a music file into the file? i dont want any other windows to open when i run my batch file. i dont know i tried "start [nameofsong.wma] " but it opens it in media player and repeats...i want the file to play and be over not loop and i dont want a window to open when it plays...ok what im trying to do is insert a clip of me narrating a short bit of a story
CAN SOMEONE HELP oh and i want to insert multiple clips of me narrating at different points in the batch file PLZ AND THX
Four answers:
Kolto101
2010-12-20 22:00:53 UTC
sndrec32. It's on Windows XP operating systems, and can be downloaded and ran on vista. It also does exactly what you want. Except, I'm pretty sure it has to be a .wav format, but that easily fixed with online converters.



the proper syntax for playing the file without a window coming up would be:



SNDREC32 /PLAY /CLOSE /EMBEDDING .\folder\soundormusic.wav



of coarse, it doesn't need to be in all caps. If you use XP then just use the code. If you're on vista or other, you can download sndrec32 here via my site: http://koltkoding.tk/batch/tools/sndrec32.exe



It's very small, only 130 KBs. Just run it as administrator so it will go into the registry. Ask me if you have questions. Also, it must be in the same location as your batch file or in the "system32" folder, or it will not work in your batch files.
2010-12-19 12:48:19 UTC
Batch files can't play music, you have to run a program that can - which is what happened.
naomi
2016-06-03 07:16:26 UTC
Another option would be to wait for new pc, connect old hdd as slave and copy stuff across. Another option: Connect a spare hdd to old pc. Format it so its clean. Then right click on my documents in start menu. select properties. Then change target to new hdd. this will proceed to copy all your documents folder over to the new hdd. This hdd then just needs to be connected to new pc as slave to copy documents over.
keaton
2010-12-22 09:52:50 UTC
start /min wmplayer.exe "%cd%\songname.mp3"



this will start the song and will not show a media player, not even minimized.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...