INTERACT FORUM
Networks and Remotes => Media Network => Topic started 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
-
You could stop MC from running at login and instead run a batch file with something like this in...
@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?)
-
See also the /Sleep switch:
http://wiki.jriver.com/index.php/The_Command_Line (http://wiki.jriver.com/index.php/The_Command_Line)
-
How would we use the sleep switch to delay startup?
cheers
-
@ECHO OFF
MC19.exe /Sleep 10000
MC19.exe
-
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!
-
Just being having a look through the wiki and noticed that there is also a /StartAfterDelay switch, we are spoilt for choice ;D
-
It appears my memory is now good for only several months:
(cur) (prev) 22:15, June 19, 2013 MrC (Talk | contribs) (10,905 bytes) (→Command Line Options and Parameters - added /StartAfterDelay) (undo)
-
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.
-
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
-
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!