I've had a heck of a time trying to create routines that kill and restart services in WinXP. I've found the easiest method to write a (DOSCOMMAND) BAT file using the 'SC' command to start/stop them. I have been planning on dumping these bat files into a folder and calling them with ShellExecute with SW_HIDE and actually that's already working pretty well...but I'd rather bundle them within the executable as a resource which I've spent some time on but haven't been able to find the proper way to execute them. Can I call ShellExecute for a resource BAT file? I would greatly appreciate any suggestions.
Thanks
Tony
Thanks
Tony