-
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"
-
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
Page generated in 1,751,095,655.58526 seconds with 10 queries