Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Process and size of batch file

Process and size of batch file

Scheduled Pinned Locked Moved Visual Basic
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dBrong
    wrote on last edited by
    #1

    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!

    D 1 Reply Last reply
    0
    • D dBrong

      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!

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups