Results 1 to 2 of 2

Thread: Wmplayer batch file

  1. #1
    Join Date
    Oct 2010
    Posts
    1

    Wmplayer batch file

    I'm trying to create a batch file in Windows 7 that will copy media from a folder then uses the Play To feature to play the video to a WD Live device. I'm very new to writing script and batch files so any help would be appreciated.

    Here is what I have so far that will play the sample video on the pc:

    cd\
    cd c:\program files (x86)\windows media player\
    wmplayer "C:\Users\Public\Videos\Sample Videos\Wildlife.wmv"

  2. #2
    Join Date
    Mar 2010
    Posts
    330

    Re: Wmplayer batch file

    You can use the following batch script to do the same

    Code:
    if "%1" == "" goto error1
    if "%2" == "" goto error2
    xcopy "%1" "%2" /S /E /H
    goto endofprogram
    :error1
    echo You must provide source
    echo Syntax:
    echo %0 source destination
    goto endofprogram
    :error2
    echo You must provide target
    echo Syntax:
    echo %0 source file
    goto endofprogram
    :endofprogram

Similar Threads

  1. make file name list in excel using batch file
    By shibinpanayi in forum Windows Software
    Replies: 1
    Last Post: 04-06-2011, 03:44 AM
  2. Learning Batch file to open a program or a file
    By Ikshana in forum Windows Software
    Replies: 3
    Last Post: 04-04-2011, 07:24 PM
  3. Windows Batch file to output directory names and size to txt file
    By m2thearkus in forum Software Development
    Replies: 6
    Last Post: 16-07-2010, 12:04 AM
  4. Dos batch file to sort files based on file names.
    By Jon Osborn in forum Windows Server Help
    Replies: 9
    Last Post: 17-06-2009, 11:06 AM
  5. Replies: 3
    Last Post: 12-03-2009, 12:56 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,713,498,052.01201 seconds with 17 queries