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. C / C++ / MFC
  4. I am looking for batch program

I am looking for batch program

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 3 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.
  • L Offline
    L Offline
    louis 0
    wrote on last edited by
    #1

    I looking for a batch program where one could place the same program to be executed with its parameters (not arguments as we know it) several times. When the batch program is run, it would executed the program file automatically with its parameters(not arguments). I would like run the same program several times with different parameters. Does anyone perhaps know of such a batch program and where I could get hold of it. Thanks. louis

    L 1 Reply Last reply
    0
    • L louis 0

      I looking for a batch program where one could place the same program to be executed with its parameters (not arguments as we know it) several times. When the batch program is run, it would executed the program file automatically with its parameters(not arguments). I would like run the same program several times with different parameters. Does anyone perhaps know of such a batch program and where I could get hold of it. Thanks. louis

      L Offline
      L Offline
      louis 0
      wrote on last edited by
      #2

      Just in case someone wants to know the difference between arguments and parameters as mentioned in this question. Arguments are those variables that one passes to a subroutine, or for example, as in the old days when programming in C, main(int argc, char * argv[]). These values are passed before the program is executed. Parameters on the other hand are variables(inputs) required by a program during its execution, for example scanf() or getc() in C. Thanks again. Bamboo

      B 1 Reply Last reply
      0
      • L louis 0

        Just in case someone wants to know the difference between arguments and parameters as mentioned in this question. Arguments are those variables that one passes to a subroutine, or for example, as in the old days when programming in C, main(int argc, char * argv[]). These values are passed before the program is executed. Parameters on the other hand are variables(inputs) required by a program during its execution, for example scanf() or getc() in C. Thanks again. Bamboo

        B Offline
        B Offline
        benjymous
        wrote on last edited by
        #3

        So you have a command line program that prompts the user to type in their parameters at run time? You could just redirect the input from a text file rather than from the keyboard e.g. Myfile.exe arg1 arg2 -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!

        D 1 Reply Last reply
        0
        • B benjymous

          So you have a command line program that prompts the user to type in their parameters at run time? You could just redirect the input from a text file rather than from the keyboard e.g. Myfile.exe arg1 arg2 -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          benjymous wrote: You could just redirect the input from a text file rather than from the keyboard Assuming that the program is reading from standard input, you'd have: myprog.exe < file.dat


          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          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