INTERACT FORUM

Networks and Remotes => Media Network => Topic started by: splashdwn1 on September 29, 2013, 09:13:15 am

Title: Delay MC Startup
Post by: splashdwn1 on September 29, 2013, 09:13:15 am
I have my HTPC set to startup with windows which it does fine.  However it tries to connect to server on my network before the network is available and get the library server is unavailable, retry message.  Once the network connects and is active I retry and it connects immediately.  Is there a way to delay the startup of MC a few seconds until the network is available? I've looked in the options and searched but I can't find my issue which seems like a common one.

Thanks,
Chris
Title: Re: Delay MC Startup
Post by: Micromecca on September 29, 2013, 10:27:09 am
You could stop MC from running at login and instead run a batch file with something like this in...


Code: [Select]
@ECHO OFF

ping 1.1.1.1 -n 1 -w 10000 >NUL

C:\Windows\System32\MC19.exe

Alternatively you could create a scheduled task to run MC at login with a condition to ensure the network is active 1st.
(I think the active network condition is available in Vista and higher?)
Title: Re: Delay MC Startup
Post by: MrC on September 29, 2013, 11:39:42 am
See also the /Sleep switch:

    http://wiki.jriver.com/index.php/The_Command_Line (http://wiki.jriver.com/index.php/The_Command_Line)
Title: Re: Delay MC Startup
Post by: Micromecca on September 30, 2013, 03:45:41 am
How would we use the sleep switch to delay startup?

cheers
Title: Re: Delay MC Startup
Post by: MrC on September 30, 2013, 10:59:29 am
@ECHO OFF

MC19.exe /Sleep 10000

MC19.exe
Title: Re: Delay MC Startup
Post by: Micromecca on September 30, 2013, 11:02:18 am
No wonder I couldn't get it to work I was only using 'MC19.exe /Sleep ****' thinking it would then launch after the sleep period

thanks!
Title: Re: Delay MC Startup
Post by: Micromecca on September 30, 2013, 03:59:53 pm
Just being having a look through the wiki and noticed that there is also a /StartAfterDelay switch, we are spoilt for choice  ;D
Title: Re: Delay MC Startup
Post by: MrC on September 30, 2013, 04:01:26 pm
It appears my memory is now good for only several months:

Quote
(cur) (prev) 22:15, June 19, 2013 MrC (Talk | contribs) (10,905 bytes) (→Command Line Options and Parameters - added /StartAfterDelay) (undo)
Title: Re: Delay MC Startup
Post by: splashdwn1 on October 21, 2013, 07:05:44 am
In case this helps anyone else, I was able to resolve this issue by setting MC as a windows task at startup rather than the option within MC to start with Windows.  This allowed me to set a delay of one minute which gave the network time to connect.
Title: Re: Delay MC Startup
Post by: FastKayak on October 22, 2013, 06:29:14 pm
Ditto.  I use Windows task scheduler too as I need a 2 minute delay for my NAS (well not exactly a NAS, it is a DriveBender pool, but same idea) and Windows to get happy with each other.  Works well.

FastKayak / Larry
Title: Re: Delay MC Startup
Post by: WinoOutWest on October 22, 2013, 09:27:21 pm
I use Evenghost to do this (and a bunch of other things too) but it triggers my shutdown as well in the wee hours of the am.
Cheers!