process.start and Windows 98

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following code snippet which starts a batch file in a separate process. It works fine on my development computer (2000 Server), and on an XP box, but fails on two Win 98 machines
No error, but I can be sure that the batch file does not run. I put an echo foo >> c:\file.txt to see if it is executed. Yet, no error. Any idea what is going on

If blnFound The
If dteFileModifiedDate > dteLastUpdateTimeStamp The
WriteInfo("Began copying: " & strInstallLocation & " Asynchronous = " & blnAsync.ToString
If blnAsync The
Dim proCopy As New Proces
proCopy.StartInfo.FileName = "UpdateCopier.BAT
proCopy.StartInfo.Arguments = Chr(34) & strInstallLocation & Chr(34) & " " & Chr(34) & mstrLocalUpdateFile & Chr(34
proCopy.StartInfo.WindowStyle = ProcessWindowStyle.Hidde
proCopy.Start(
end i

Thanks in Advance
 
* "=?Utf-8?B?RXJpYyBGbGVldA==?= said:
I have the following code snippet which starts a batch file in a
separate process. It works fine on my development computer (2000
Server), and on an XP box, but fails on two Win 98 machines:

No error, but I can be sure that the batch file does not run. I put an
echo foo >> c:\file.txt to see if it is executed. Yet, no error. Any
idea what is going on?

Did you try to set the 'ProcessStartInfo''s 'UseShellExecute' property
to 'True'?
 
Back
Top