Saved Bookmarks
| 1. |
Solve : Playing an Audio File with Batch File? |
|
Answer» Can someone help me out with this? I don't know what I'm doing wrong. mplay32 /play /close c:\Users\Connor\Desktop\abc.wavinto NOTEPAD and name it file.bat but it's not working. May I suggest something. When ever you have a problem with batch FILES, it helps to simplify things and make them more direct. You should have received some type of error message if the Windows media PLAYER was not available, or could not find the file. Just now I made a new audio file that I called "test.wav" and after adjusting the volume level and effects, I placed it in an empty directory on the C: drive. I had named the directory WAV so now the new audio file I just created is in that directory. So now this is what I do at the command prompt. C:\WAV>mplay32 /play /close TEST.WAV Works fine for me. Can you duplicate this on your system? Hmmm ok, I put a folder named wav in C, I put my .wav file into it(it's named ABC), I wrote, "C:\WAV>mplay32 /play /close abc.WAV" in wordpad, saved it as wavplay.bat. When I click it it opens a DOS window and closes too fast to read, and it put a file that's not associated with anything on the desktop. The file is named mplay32. I don't know what the problem is.OK. I ran it directly from the command line. here is a BAT files I make and put in the same directory. Quote mplay32 /play /close TEST.WAV I am using XP. It runs fine in the batch file when i run the file inside of Windows Explorer. It opens a DOS window (Command box) and runs the wmp and at the end of the files it closes. Note. Make sure any other audio programs are not active. I'm running a 65bit OS. Would that make a difference in any of this? Quote from: Ravenholm on October 20, 2009, 09:50:56 PM I'm running a 65bit OS. Really? I didn't know that you could do that. What's it called?lol, typo. My bad.Is it a long file? |
|