Good Afternoon Everyone. I have taken on a C# programming assignment that was previously coded by someone else. This program originally called two perl scripts for execution. Those perl scripts were written back in the 90's and basically do a lot of formatting and filtering prior to calling various 8086 executables for assembling and linking .a86 files.
In the beginning I rewrote the perl scripts to increase speed and accept arguments in from the c# program. I am not very good at interpreting some of what the original script was doing.
Now in the C# program I have instantiated processes for all of the executables and am starting them successfully except for when running link86.exe I get errors. The link86 process has the following info:
Process test = new Process();
ProcessStartInfo testproc = new ProcessStartInfo();
testproc.FileName = path + "\\link86.exe";
testproc.Arguments = procData; // procData is a string
test.testproc.Start();
/* I'm having trouble passing all of these objects as arguments
* to link86. link86 does not like the '&' being in the string,
* also the ' ' (space) is not required between arguments. After
* 6 objects as arguments the command line returns the following error
* 'The system cannot execute the specified program' it seems as if the
* the command line is trying to execute the .obj file I don't know why
* this is.
* The error returned by the debugger says the 'Parameter was invalid'
*/
procData = (in text visualizer)
file.OBJ, &
file2.OBJ, &
TO outputfile.LNK OPTIONS
procData = (when hovering over object)
"file.OBJ, &\nfile2.OBJ, &\nTO outputfile.LNK OPTIONS"
On the command line the following command works up until I enter a 7th .obj file.
link86 file.obj, file2.obj,...TO outputfile.LNK OPTIONS
I looked up some info about link86.exe and I have found out it has a command line length limit of 127 characters. I am trying to pass about 95 .obj files to link86 as arguments.
If I could find a method to pass 90+ arguments to link86 via c# that would help immensely.
Thanks for your time and consideration in this matter!