K
Kevin
I have an application that handles datascraping with a TN3270 session.
The TN3270 session is opened with a .ws profile and pcomstrt.exe. The
process string in the application is this:
psSession = New Process
psSession.StartInfo.FileName = path\to\pcomstrt.exe
psSession.StartInfo.Arguments = "/P="path\to\ws file & " /S=X /Q"
The /P specifies the .ws file to load, the /S=X specifies that the
session letter should be X, and i forgot what Q is, but if its needed i
can look it up quick.
This command starts a Windows command prompt to execute pcomstrt.exe,
which is a console-based application, and pcomstrt.exe then starts
pcsws.exe with the specified params. Because the initial process is
already closed, I can't use psSession.Close to close the newly created
window, and my attempts to close by Window Title have thus far failed.
Is there a way to get the newly spawned process ID? Please note that
there are several windows opened at any given time with different
session letters, but all the same application - pcsws.exe, making it a
little difficult to use GetProcessByName.
The TN3270 session is opened with a .ws profile and pcomstrt.exe. The
process string in the application is this:
psSession = New Process
psSession.StartInfo.FileName = path\to\pcomstrt.exe
psSession.StartInfo.Arguments = "/P="path\to\ws file & " /S=X /Q"
The /P specifies the .ws file to load, the /S=X specifies that the
session letter should be X, and i forgot what Q is, but if its needed i
can look it up quick.
This command starts a Windows command prompt to execute pcomstrt.exe,
which is a console-based application, and pcomstrt.exe then starts
pcsws.exe with the specified params. Because the initial process is
already closed, I can't use psSession.Close to close the newly created
window, and my attempts to close by Window Title have thus far failed.
Is there a way to get the newly spawned process ID? Please note that
there are several windows opened at any given time with different
session letters, but all the same application - pcsws.exe, making it a
little difficult to use GetProcessByName.