gharris999;449244 Wrote: > You can use my SCCLITool.exe utility that's available in the > SCPowerTool.zip download: > http://srvrpowerctrl.googlecode.com/files/SCPowerTool_latest.zip > > Your batch file might look something like this: > > play_media_monkey.cmd > > Code: -------------------- > > > @echo off > set BROADCASTIP=192.168.1.255 > set SCSERVERIP=192.168.1.200 > set SCPORT=9090 > set SCSERVERMAC=AABBCCDDEE > > :checkwake > echo Checking scserver status.. > ping %SCSERVERIP% -n 1 -w 10 >NUL 2>&1 > > if errorlevel 1 goto wakeup > goto awake > > :wakeup > echo SCServer is asleep...attempting to wake it up.. > rem Wakeup the server.. > %windir%\util\wolcmd.exe %SCSERVERMAC% %BROADCASTIP% 255.255.255.0 7 >NUL 2>&1 > sleep 18 > goto checkwake > > :awake > sleep 5 > > :setblock > %windir%\util\SCCliTool.exe srvrpowerctrl setblock Media_Monkey_Playing viacli -h scserver -p %SCPORT% > > :play_media_monkey > rem insert media_monkey command line here..e.g.: > start "Media Monkey" /WAIT "C:\Program Files\MediaMonkey\mediamonkey.exe" > > :clearblock > %windir%\util\SCCliTool.exe srvrpowerctrl clearblock Media_Monkey_Done viacli -h %SCSERVERIP% -p %SCPORT% > > -------------------- > > > You'll need to fix up the "set XXX=XXX" values to match your own > setup. And I'm totally guessing as to what the command line for Media > Monkey might be. You'll need to fix that up too. > > You can get the wake-on-lan cmd line tool from > http://www.depicus.com/wake-on-lan/wake-on-lan-cmd.aspx. You can get > the sleep and other utilities as part of the Windows Server 2003 > Resource Tool Kit from here: > http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=enThanks > a lot, your tool and the script are great!
(Only one short comment for others who want to use it: The "scserver" in the setblock line must be changed to "%SCSERVERIP%) -- dip ------------------------------------------------------------------------ dip's Profile: http://forums.slimdevices.com/member.php?userid=902 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
