a couple years ago I wrote a program in vb.net (Visual Studio 2005)
which called ghostscript using the process.start function. It has
been running very well on several Windows XP boxes. Following is the
Dim oPSI As New System.Diagnostics.ProcessStartInfo
Dim oProcess As System.Diagnostics.Process
Dim SizeArray(4) As String
Dim Orientation As Integer = 0
Dim PaperSize As Integer = 0
.FileName = "C:\Windows\System32\cmd.exe"
.CreateNoWindow = True
.RedirectStandardOutput = True
.RedirectStandardError = vbTrue
.WindowStyle = ProcessWindowStyle.Normal
.WorkingDirectory = "c:\burn\"
.UseShellExecute = False
.Arguments = "/C gswin32c.exe -dBATCH -dNOPAUSE -
sDEVICE=pdfwrite -sOutputFile=" & FullOutputName & " -f" & ConcatLine
oProcess = System.Diagnostics.Process.Start(oPSI)
Recently I upgraded to Visual Studio 2010 (using the automatic
conversion tool to convert the code) and upgraded my PC to Windows 7
along with everyone else at my company.
Now the above code does not work! It doesn't fail out or abend, nor
does it create error message or error log entries. The code simple
executes without generating any results or output. I can see no rhyme
or reason behind it, and there are no clues to track down. Has anyone
else observed this behavior?? Any ideas are appreciated.