G
Guest
I have an Exchange Server 2000 installed as a Vitual Server in my test lab.
I am creating an application that does a variety of functions and then runs
Exmerge to create PST's for certain users.
I create a new process, specify the path and exe to run, in the case some
path followed by Exmerge.exe. When the process starts I get "Win32
Exception: System Cannot Find File Specified"
I tried to reference the path & file directly, C:\program
files\exchsrvr\bin\exmerge.exe, c:\progra~1\exchsrvr\bin\exmerger.exe and
\\win2k-exchange\c$\program files etc.... All of which return the same
result. As a test I copied the Notepad.exe file into the same path as
exmerge.exe and then adjust my Process.Start() and it runs Notepad correctly?
But notepad isn't the best test of Process.Start()
Basically, here is my code (VB.NET)
Dim p as Process
Dim s as ProcessStartInfo
s.FileName = "exmerge.exe"
s.Arguments = "-B -D -F " & currWork & "\schema.ini"
s.WorkingDirectory = cfg.Exmerge_execution_path 'References Directory Where
Exmerge is stored.
p = new Process()
p.Start(s) 'Exception Thrown Here
The path shows up correctly because I've kicked it out to a log file to see
myself. I also ran it without arguments. I also tried just creating the
Process object and supplying parameters in the constructor to no avail.
I apologize this is such a long post but I'm stuck.
I am creating an application that does a variety of functions and then runs
Exmerge to create PST's for certain users.
I create a new process, specify the path and exe to run, in the case some
path followed by Exmerge.exe. When the process starts I get "Win32
Exception: System Cannot Find File Specified"
I tried to reference the path & file directly, C:\program
files\exchsrvr\bin\exmerge.exe, c:\progra~1\exchsrvr\bin\exmerger.exe and
\\win2k-exchange\c$\program files etc.... All of which return the same
result. As a test I copied the Notepad.exe file into the same path as
exmerge.exe and then adjust my Process.Start() and it runs Notepad correctly?
But notepad isn't the best test of Process.Start()
Basically, here is my code (VB.NET)
Dim p as Process
Dim s as ProcessStartInfo
s.FileName = "exmerge.exe"
s.Arguments = "-B -D -F " & currWork & "\schema.ini"
s.WorkingDirectory = cfg.Exmerge_execution_path 'References Directory Where
Exmerge is stored.
p = new Process()
p.Start(s) 'Exception Thrown Here
The path shows up correctly because I've kicked it out to a log file to see
myself. I also ran it without arguments. I also tried just creating the
Process object and supplying parameters in the constructor to no avail.
I apologize this is such a long post but I'm stuck.