Process and size of batch file
-
I am trying to run a batch file which I have created in VB.Net The file is good, and I can run it from the CMD prompt, however when I run it from a Process object - the CMD window flashes - and only a line or two is executed. This batch file was about 55kb As a test, I moved things around so they would be under the root of C:, and not in C:\Programs\.....\..... ....\ The batch file was quite a bit smaller (30kb), and the paths were shorter. It runs fine from Process. It's either the line length or the size of the batch file. Anyone know of any constraints or a work around? Thanks!
-
I am trying to run a batch file which I have created in VB.Net The file is good, and I can run it from the CMD prompt, however when I run it from a Process object - the CMD window flashes - and only a line or two is executed. This batch file was about 55kb As a test, I moved things around so they would be under the root of C:, and not in C:\Programs\.....\..... ....\ The batch file was quite a bit smaller (30kb), and the paths were shorter. It runs fine from Process. It's either the line length or the size of the batch file. Anyone know of any constraints or a work around? Thanks!
dBrong wrote:
It's either the line length or the size of the batch file. Anyone know of any constraints or a work around?
There are no limits in the Process class for the line length or the size of the batch file. Let's see the batch file and the code launching it.
Dave Kreskowiak Microsoft MVP - Visual Basic