Multiple .bat files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • evolution5
    New Member
    • Nov 2007
    • 5

    Multiple .bat files

    Hi
    I have 4 .bat files which each run in there own cmd window, each delete a file and then call a different perl script which runs in the cmd window. The problem I have is that I need a script that will do the following:

    1) Kill the open cmd windows (i.e perform a ctrl c on each cmd window)
    2) Execute the 4 batch files each in a seperate cmd window

    Hope you can help

    Thanks
    Nick
  • epots9
    Recognized Expert Top Contributor
    • May 2007
    • 1352

    #2
    Originally posted by evolution5
    Hi
    I have 4 .bat files which each run in there own cmd window, each delete a file and then call a different perl script which runs in the cmd window. The problem I have is that I need a script that will do the following:

    1) Kill the open cmd windows (i.e perform a ctrl c on each cmd window)
    2) Execute the 4 batch files each in a seperate cmd window

    Hope you can help

    Thanks
    Nick
    what do these batch files have to do? and do they have to run at certain times?

    Comment

    • jamesd0142
      Contributor
      • Sep 2007
      • 471

      #3
      Originally posted by evolution5
      Hi
      I have 4 .bat files which each run in there own cmd window, each delete a file and then call a different perl script which runs in the cmd window. The problem I have is that I need a script that will do the following:

      1) Kill the open cmd windows (i.e perform a ctrl c on each cmd window)
      2) Execute the 4 batch files each in a seperate cmd window

      Hope you can help

      Thanks
      Nick
      2) this code will start other batchfile from within the main 1
      CALL <name>.bat >> <Logfile>.txt

      Comment

      Working...