INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Delay MC Startup  (Read 2263 times)

splashdwn1

  • Regular Member
  • Recent member
  • *
  • Posts: 16
  • Change this by choosing profile
Delay MC Startup
« 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
Logged

Micromecca

  • Galactic Citizen
  • ****
  • Posts: 283
Re: Delay MC Startup
« Reply #1 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?)
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Delay MC Startup
« Reply #2 on: September 29, 2013, 11:39:42 am »

See also the /Sleep switch:

    http://wiki.jriver.com/index.php/The_Command_Line
Logged
The opinions I express represent my own folly.

Micromecca

  • Galactic Citizen
  • ****
  • Posts: 283
Re: Delay MC Startup
« Reply #3 on: September 30, 2013, 03:45:41 am »

How would we use the sleep switch to delay startup?

cheers
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Delay MC Startup
« Reply #4 on: September 30, 2013, 10:59:29 am »

@ECHO OFF

MC19.exe /Sleep 10000

MC19.exe
Logged
The opinions I express represent my own folly.

Micromecca

  • Galactic Citizen
  • ****
  • Posts: 283
Re: Delay MC Startup
« Reply #5 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!
Logged

Micromecca

  • Galactic Citizen
  • ****
  • Posts: 283
Re: Delay MC Startup
« Reply #6 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
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Delay MC Startup
« Reply #7 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)
Logged
The opinions I express represent my own folly.

splashdwn1

  • Regular Member
  • Recent member
  • *
  • Posts: 16
  • Change this by choosing profile
Re: Delay MC Startup
« Reply #8 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.
Logged

FastKayak

  • World Citizen
  • ***
  • Posts: 196
Re: Delay MC Startup
« Reply #9 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
Logged

WinoOutWest

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 358
Re: Delay MC Startup
« Reply #10 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!
Logged
Pages: [1]   Go Up