Create a Service?

Create a Service?

Post by Ken » Thu, 08 Jan 2004 03:57:24


I have an application that uses a batch file to start. I
want to set it up to run as a service, so I don't have to
login every time. Do I have to use a 3rd party app or is
there another way to accomplish this task?
 
 
 

1. wmic service call create ? don`t create service

2. Copy all data from a:Class A's fields to the namesake fields of b:Class B.

I have two class with nearly exactly same attributes, the only difference is
class B's property setter does some argument checking.

[Serializable]
class A
{
private string a;

public string AA
{
get { return a; }
set { a = value; }
}
}

[Serializable]
class B
{
private string a;

public string AA
{
get { return a; }
set
{
if (string.IsNullOrEmpty(value))
{
throw new ApplicationException();
}
a = value;
}
}
}

I want to do the following:
A a = new A();
a.AA = "123123";
B b = (B)a; -- Copy a's attribute values to b.
Please tell me how to implement a generic function to support copying
namesake fields from one class instance to another even when they belongs to
different class type.

Thanks.

zlf

3. lookup only finds #n/a's

4. Try Again / VLOOKUP without N/A's

5. regexp for reg language that has an even number of a's and b's

6. CFG: more a's than b's

7. How could I ask Thread B to call B().Method() from inside Thread A's run?

8. Quick A's to easy(?) Q's appreciated...

9. vlookup prob with all #n/a's

10. Count A's

11. Conditional count in range w/#N?A's

12. Host would occasionally fail to resolve A's rec.Help!

13. CAnnot type lowercAse 'A's Anymore

14. How could I ask Thread B to call B().Method() from inside Thread A's run?

15. Printing report b after report a prints using report a's variables