r.kadiresan 0 Newbie Poster

I am trying to run XCOPY to copy files from one directory in a server into another directory in a another server.I am creating a new System.Diagnostics.Process, filling out some start info, then kicking it off with Process.Start(). When I run this code in a console application or a windows application its work fine. But if i put it in windows service the XCOPY is not working...

Here is my code


Plz. give me the suggesstion..

Using m_Process As New Process()
With m_Process.StartInfo
.FileName = "cmd.exe"
.UseShellExecute = False
'.CreateNoWindow = True
.RedirectStandardInput = True
'.WorkingDirectory = "C:\Documents and Settings\Kadiresanr"
End With
m_Process.Start()
m_Process.StandardInput.WriteLine(param)
End Using


Do i need anything to add for windows service.

Thanks
Kadiresan