Computer Problems? Computing.Net has over
1,000,000 posts about all things technology related! Over 90% answered within 24 hours!
Click here to start participating now! Also, be sure to check out the
New User Guide .
Putting Sound in a batch file
Name: hatlad
Date: June 15, 2007 at 05:36:01 Pacific
OS: windows xp
CPU/Ram: intel processor 512 mb RA
Product: DELL
Comment: I have a hobby of making batch files and was wondering if it is possible to use sound in a batch file. If so, can you tell me how?
I hope you can help!
Sponsored Link
Response Number 1
Name: tonysathre
Date: June 15, 2007 at 16:26:24 Pacific
Reply: Yes you can. This is how I've done it:
cd /d "%programfiles%\videoLAN\VLC" start /min vlc "%systemroot%\media\tada.wav" vlc:quit
You have to have VLC installed.
"Computer security." — Oxymoron
0
Response Number 2
Name: Razor2.3
Date: June 15, 2007 at 17:12:20 Pacific
Reply: Something that'll work with a clean Windows install:start "" /min mplayer2 "Sound File " /play /close
0
Response Number 3
Name: Mechanix2Go
Date: June 15, 2007 at 23:03:43 Pacific
Reply: or, more simply:
d:\folder\filename.wav
===================================== If at first you don't succeed, you're about average.M2
0
Response Number 4
Name: Razor2.3
Date: June 15, 2007 at 23:33:58 Pacific
Reply: Well, if you really wanted to load the bloated WMP...
0
Response Number 5
Name: Mechanix2Go
Date: June 16, 2007 at 00:18:26 Pacific
Reply: It uses whatever app is 'assocuated' with the file. In my case, VLC for wav; MusucMatch for MP3 and m3u; and so on
===================================== If at first you don't succeed, you're about average.M2
0
Related Posts
Response Number 6
Name: Razor2.3
Date: June 16, 2007 at 00:28:34 Pacific
Reply: Yeah, and MPC's my player of choice. But we're not exactly "normal" Windows users, are we?
0
Response Number 7
Name: Mechanix2Go
Date: June 16, 2007 at 01:08:27 Pacific
Reply: I'm not sure what 'normal' is, but I guess I'm not it. LOL
===================================== If at first you don't succeed, you're about average.M2
0
Response Number 8
Name: hatlad
Date: June 16, 2007 at 06:32:20 Pacific
Reply: Thank you all!
I hope you can help!
0
Response Number 9
Name: hatlad
Date: June 16, 2007 at 06:39:34 Pacific
Reply: I just discovered a problem, When I tried the advice from response 3 it said "Device not ready"
I hope you can help!
0
Response Number 10
Name: hatlad
Date: June 16, 2007 at 06:51:15 Pacific
Reply: This is wahat i typed in:
@echo off d:\"C:\Documents and Settings\Jim\My Documents\Misc\Applications\beep1.wav" pause
(the path is on one line actually)I hope you can help!
0
Response Number 11
Name: Mechanix2Go
Date: June 16, 2007 at 07:14:33 Pacific
Reply: You need to lose the d:\
meaningless
"C:\Documents and Settings\Jim\My Documents\Misc\Applications\beep1.wav"
===================================== If at first you don't succeed, you're about average.M2
0
Response Number 12
Name: hatlad
Date: June 16, 2007 at 07:53:07 Pacific
Reply: Thank you. But is there a way that the sound just plays without having to open up a program. (Tell me if I am not specific)
I hope you can help!
0
Response Number 13
Name: Mechanix2Go
Date: June 16, 2007 at 10:39:39 Pacific
Reply: "is there a way that the sound just plays without having to open up a program"
no
===================================== If at first you don't succeed, you're about average.M2
0
Response Number 14
Name: hatlad
Date: June 16, 2007 at 11:42:46 Pacific
Reply: Thank u all 4 your help! (sorry if u think I was wasting ur time)
I hope you can help!
0
Response Number 15
Name: Razor2.3
Date: June 17, 2007 at 01:19:00 Pacific
Reply: Actually, it's a hack, but there is a way. I'm hesitant to mention it, because it leaves an uncloseable copy of WMP running: @echo CreateObject("WScript.Shell").Run "wmplayer " ^& Chr(34) ^& "Sound file here " ^& Chr(34), 0 > a.vbs @a.vbs //nologo
Yeah, it opens up a program (two of them, actually), but graphically, the user can't tell.
0
Sponsored Link
Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Programming Forum Home
Sponsored links
Results for: Putting Sound in a batch file
Using nslookup in a batch file Summary : If you want to use nslookup to go through a number of IP addresses you could use this 2 step approach: 1) Create a batch file called nsbatch.bat * 2) for /L %I IN (1,1,255) DO @CALL nsbatch.bat 10.1.5... www.computing.net/answers/programming/using-nslookup-in-a-batch-file/18194.html
Extract comp. alias in a batch file Summary : I am trying to use the hostname as a conditional in a batch file. I would like to use the alias (not %COMPUTERNAME% mind you) I added to the hosts file and have to make no other changes (i.e. set an ... www.computing.net/answers/programming/extract-comp-alias-in-a-batch-file/11253.html
Get a Folder size in a batch file Summary : I am trying to get a folder size in a batch file but can't figure it out. is there a way??? thanks, ... www.computing.net/answers/programming/get-a-folder-size-in-a-batch-file/9587.html