I've created a service using srvany which starts a little prog I wrote to monitor for a "switch user" condition and then on recognising one, kicks off a batch file which starts an ftp synchronisation.

The service is set to autostart and I've added Spooler as a dependency.

The problem is that after a reboot, although the service shows running, nothing happens when I switch user. If I stop and start the service, then switch user (the trigger) - everything works perfectly - and continues to work perfectly until the PC is rebooted again.

I can't understand why it's necessary to stop/start the service after a reboot.

Any ideas/suggestions gratefully received!

Cheers

Just a guess. Does it work if you switch the service's Startup Type to 'Manual' ?

Thanks for your suggestion. It would work if I manually started the service (as it does when I restart it) but I really need this to kick in automatically - and there's no other trigger to start the service.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.