This is driving me mad....
i have a 3rd party application that i can call to load xml into a archive system to create pdf's ect i can call this from a cmd line like
3rdpartyapp.exe -s126.96.36.199 -p2000 -j1212 < c:\temp\mydoc.xml
this happily works. i'm now trying to incorporate this into a vb.net app in vs2005.
The example below works fine on 32bit machines but not on 64bit.
So i then tried to call 3rdpartyapp.exe from the ProcessStartInfo and pass the arguments but it seems i cannot pass '<' in the arguments for the input file.
sSeerver = "188.8.131.52"
sServerPort = "2000"
sJob = "1212"
sDoc = "C:\Temp\MyDoc.xml"
Dim psi As ProcessStartInfo = New ProcessStartInfo("cmd.exe")
.WindowStyle = ProcessWindowStyle.Hidden
.WorkingDirectory = AppPath()
.UseShellExecute = False
.CreateNoWindow = False
.RedirectStandardInput = True
.RedirectStandardOutput = True
.RedirectStandardError = True
Dim m_Input As String = "3rdpartyapp -s" & sServer & " -p" & sServerPort & " -j" & sJob & " < " & sDoc
Dim m_Process As Process = Process.Start(psi)