Results 1 to 4 of 4

Thread: How can I play a Wav file from batch/cmd script?

  1. #1
    Join Date
    Sep 2004
    Posts
    12

    How can I play a Wav file from batch/cmd script?

    Hello friends, am I need of small help from you all. I’m using Windows Vista 32 bit and trying to play few wave files thought command scripts likes I use to do earlier in Windows 98 and Windows NT. But seems like it wont work in Vista.

    Do you guys have any knowledge about the same? Please let me know if it can be done in Vista as well, if yes, tell me how? Thanks a lot.

  2. #2
    Join Date
    Sep 2005
    Posts
    185

    Re: How can I play a Wav file from batch/cmd script?

    If am not wrong, by the term Command Script, do you mean Command line? If yes, than you can do it in Vista as well and it works fine. Here is how you can do the same. Just run the following command:

    <audio_program> /play /close <file>

    This stands for (for example): %ProgramFiles%\Windows Media Player\wmplayer.exe /play /close C:\music\1.wav

    Let me know if you face any problem.

  3. #3
    Join Date
    May 2006
    Posts
    976

    Re: How can I play a Wav file from batch/cmd script?

    The best I can suggest you for the same is download Windows Media Player Classic. Install it anywhere on your system. Once done, launch it and click on Help. This will show you some commandline switches.

  4. #4
    Join Date
    Sep 2004
    Posts
    12

    Re: How can I play a Wav file from batch/cmd script?

    Thanks a lot guys. That sounds really useful. Will give it a try tonight and let you know the results.

    Thanks
    NaFula

Similar Threads

  1. Windows Batch script to read file
    By SinghR in forum Windows Server Help
    Replies: 1
    Last Post: 28-04-2012, 12:56 PM
  2. batch script to find a file
    By stevenwhite in forum Software Development
    Replies: 1
    Last Post: 10-04-2012, 12:55 PM
  3. Batch Script Text file parse
    By tator.usenet@gmail.com in forum Windows Server Help
    Replies: 5
    Last Post: 25-03-2009, 02:12 AM
  4. Batch Script to parse lines in text file
    By jntoner1@gmail.com in forum Windows Server Help
    Replies: 8
    Last Post: 28-01-2009, 04:38 AM
  5. How to create a script in a DOS batch file to do a loop?
    By Jon Osborn in forum Windows Server Help
    Replies: 2
    Last Post: 27-05-2008, 06:41 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,629,333.62920 seconds with 17 queries