Workaround for rhapsody inactivity timeout problem

  • 14 October 2005
  • 0 replies
  • 1560 views

Userlevel 2
Since Rhapsody has still not fixed the connection timeout problem, I developed an ugly workaround.

Create a batch file with the following contents:

[FONT="Courier New"]@echo off
set rh-pid="0"
for /f "delims=, tokens=2" %%x in ('tasklist /fi "imagename eq rhapsody.exe" /fo csv') do set rh-pid=%%x
if %rh-pid%=="0" goto start
netstat -o | find %rh-pid%>nul
if errorlevel 1 goto restart
goto exit
:restart
echo Rhapsody is running, but has no active connections. Killing it...
taskkill /t /im rhapsody.exe
:start
echo Starting Rhapsody
start "" /min "c:\program files\rhapsody\rhapsody.exe"
:exit
set rh-pid=[/font]


Create a shortcut to that batch file, and flag it to run minimized.

Use task scheduler to schedule that shortcut to run every 10 minutes.

If I get around to it, I'll rework this as a vbscript so it doesn't pop-up a taskbar entry every 10 minutes, and minimizes the Rhapsody window when it starts.

0 replies

Be the first to reply!

Reply

    Cookie policy

    We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

    Accept cookies Cookie settings