INTERACT FORUM

Please login or register.

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

Author Topic: MC Startup  (Read 1250 times)

NickM

  • Citizen of the Universe
  • *****
  • Posts: 630
  • Simplicity isn't always best, but it's easy to fix
MC Startup
« on: May 31, 2004, 02:24:00 am »

New HTPC and just re-loaded MC10 - working well but a small problem on startup.  Media Centre ( link placed in Windows start-up folder ) loads so quickly that when looking for the central library ( using UNC ) does not give the rest of windows time to load the various networking services.  Hence the library doesn't laod and has to be manulally selected a few seconds later.

1. Is this a bug?
2. Is there a way to load MC on a delayed basis - really a windows question, sorry.
3. Is there a way to remove the default library option so that MC looks back again at the library as defined with UNC.
thanks !, nick
Logged

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:MC Startup
« Reply #1 on: May 31, 2004, 11:20:11 am »

Create a windows shell script that issues the Sleep command then fires of MC.
Logged

jleerigby

  • Guest
Re:MC Startup
« Reply #2 on: June 01, 2004, 02:16:15 am »

If it's an HTPC I'll take a guess that you are also running Girder.  If so create a command that runs mjextman.exe /start and trigger it on the GirderOpen event.  This way MC will not open until windows has had time to start up Girder.
Logged

NickM

  • Citizen of the Universe
  • *****
  • Posts: 630
  • Simplicity isn't always best, but it's easy to fix
Re:MC Startup
« Reply #3 on: June 01, 2004, 02:57:31 am »

Not using Girder - trying to keep things very simple...
I may be a bit slow here, but the "Sleep" command; wouldn't that put the PC into sleep?  Are you suggesting that having given that command, then calling MC will stop the sleep process?
Logged

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:MC Startup
« Reply #4 on: June 01, 2004, 03:08:29 am »

The windows scripting host has a command called Sleep that pauses the script for the specified number of milliseconds.

So create a script that is called from your startup folder.   The script will wait for a bit then fire up MC, e.g. put the text below into a file called test.vbs then double-click on it and you will see it pause for 5 seconds then fire up the DOS prompt (in NT).

'  Wait 5 seconds
wscript.sleep 5000

'  Get the shell object
set objShell = wscript.CreateObject("Wscript.Shell")

'  Change this to run your command ... it currently runs the NT dos prompt
objShell.Run "cmd.exe"
Logged

NickM

  • Citizen of the Universe
  • *****
  • Posts: 630
  • Simplicity isn't always best, but it's easy to fix
Re:MC Startup
« Reply #5 on: June 01, 2004, 03:17:03 am »

Perfect - many thanks.
Logged
Pages: [1]   Go Up