The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Starting XAP Apps in order


  • Subject: Starting XAP Apps in order
  • From: "Dean Smith" <ukha@xxxxxxxxxxxxxxx>
  • Date: Sun, 13 Nov 2005 17:55:36 -0000

Just thought I'd share my solution to ensuring my xAP applications started
after the Hub Service. Various testing showed it was indeed taking a good
while to start the hub, in fact it could be up to 30 seconds after apps in
the start-up folder had initialised (!) before the hub was ready.

I moved all the XAP relevant shortcuts from the Startup folder to a new
xAPStartup folder.

And created the following batch file (xAP-Startup.cmd) in the Startup
folder
for the auto-logon user ("Homeseer" in my case)

net start xAPHubService
for %%f in ("C:\Documents and Settings\Homeseer\Start
Menu\Programs\xAPStartup\*.lnk") DO start "XAP Start"
"%%f"

1st line starts (and importantly waits) for the Hub to start.
The second goes through all the shortcuts in the new folder and launches
them. By using the "for" command, any shortcut can be
added/removed from the
folder without having to manually edit the Batch file.

Dean





xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.