I believe that is part of the code for a Window service itself (I could be
wrong, I don't have a ton of experience writing services).  I don't see
anything in there that would actually do anything except start an
as-of-yet-unknown service.  What is the utility that you want to use that
will zip the directories? 

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-----Original Message-----
From: Ken Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 12:58 PM
To: CF-Talk
Subject: starting CF with ASP.NET

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:211770
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to