That code should do nothing different if the task name does not end with ".job". On the 1.0 version of the COM library, Microsoft's implementation is inconsistent, thus the need for this code. Are you having a problem with the code, or just looking for ways to optimize it? If there is a problem, please describe the problem and the failure or exception you get.
↧