So, now that I have these great utilities to zip up my directories it'd
be nice if the CF server was actually running. I've found some VB code I
can use for this, but I don't know much about ASP.NET, so please forgive
my ignorance, but how can I actually use this from an aspx page?
'serviceControl.vb
'-------------------
Imports System.ServiceProcess
public static void StartService(string strServiceName)
{
System.ServiceProcess.ServiceController sc2 =
new System.ServiceProcess.ServiceController(strServiceName, ".");
if
(sc2.Status.Equals(System.ServiceProcess.ServiceControllerStatus.Stopped))
{
sc2.Start();
}
}
Thanks,
Ferg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211765
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54