As long as you're operating in Windows, you could use the SCCLITool.exe
utility:
http://srvrpowerctrl.googlecode.com/files/SCPowerTool_latest.exe 
Finding non-scary windows binaries for netcat can be something of a
chore.

Batch file to initiate a scan from the local server or from a remote
machine (like a laptop) --

wipenscan.cmd:

Code:
--------------------
    
  @echo off
  set SCIP=your_servers_ip
  set CLIPORT=9090
  
  rem Rescan the whole library:
  SCCLITool.exe wipecache -q -w 0 -h %SCIP% -p %CLIPORT%
  
  rem Scan for new music:
  rem SCCLITool.exe rescan -q -w 0 -h %SCIP% -p %CLIPORT%
  
--------------------


And attached, some handy Squeezebox icons.  Make a shortcut to that
batch file, set the shortcut's icon to one of the icons included in the
zip, and drop the shortcut onto your task bar's quick-launch tool bar. 
Easy-peasy.

Here's another trickier CLI batch file:

new_random_play.cmd:

Code:
--------------------
    
  @echo off
  setlocal ENABLEDELAYEDEXPANSION
  set SCIP=your_servers_ip
  set CLIPORT=9090
  set MACADDR=your_players_mac_address
  
  rem This script starts a new random play..
  
  rem Select a random number:
  
  set /A RN=%random% %% 4 + 1
  
  if "%RN%"=="1" set SEL=tracks
  if "%RN%"=="2" set SEL=albums
  if "%RN%"=="3" set SEL=contributors
  if "%RN%"=="4" set SEL=year
  
  
  echo Selecting randomplay by %SEL%
  
  rem Must stop any playback before a new random play..
  SCCLITool.exe %MACADDR% stop -q -w 0 -h %SCIP% -p %CLIPORT%
  
  SCCLITool.exe %MACADDR% randomplay %SEL% -q -w 0 -h %SCIP% -p %CLIPORT%
  
--------------------


+-------------------------------------------------------------------+
|Filename: sbicons.zip                                              |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=8859|
+-------------------------------------------------------------------+

-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=71029

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to