C
Christopher
Good morning.
I have developed a Windows Service and it is currently
working on Windows XP. I tried to move this service to
Windows 2000 Advanced Server and the serice installs and
starts up properly but won't execute the programs it was
designed to do. Are there any inherit differences between
implementing services on Win XP and 2000 Server? Here is a
snippet of code I am using. Thanks for any help you may be
able to provide.
Dim myProcesses As Process() = Process.GetProcessesByName
("testProcessName")
Dim myProcess As Process
Dim myProcessInfo As ProcessStartInfo
If myProcesses.Length = 0 Then
Try
myProcess = New Process
myProcessInfo = New ProcessStartInfo
With myProcessInfo
.FileName = "testProcessName.exe"
.UseShellExecute = True
.WorkingDirectory
= "C:\testDir\testDir\"
.Verb = "open"
.CreateNoWindow = False
.WindowStyle =
ProcessWindowStyle.Normal
.Arguments = "arg1 arg2 arg3 arg4"
End With
myProcess.Start(myProcessInfo)
I have developed a Windows Service and it is currently
working on Windows XP. I tried to move this service to
Windows 2000 Advanced Server and the serice installs and
starts up properly but won't execute the programs it was
designed to do. Are there any inherit differences between
implementing services on Win XP and 2000 Server? Here is a
snippet of code I am using. Thanks for any help you may be
able to provide.
Dim myProcesses As Process() = Process.GetProcessesByName
("testProcessName")
Dim myProcess As Process
Dim myProcessInfo As ProcessStartInfo
If myProcesses.Length = 0 Then
Try
myProcess = New Process
myProcessInfo = New ProcessStartInfo
With myProcessInfo
.FileName = "testProcessName.exe"
.UseShellExecute = True
.WorkingDirectory
= "C:\testDir\testDir\"
.Verb = "open"
.CreateNoWindow = False
.WindowStyle =
ProcessWindowStyle.Normal
.Arguments = "arg1 arg2 arg3 arg4"
End With
myProcess.Start(myProcessInfo)