Command Prompt BAT Files

Discussion in 'Programming' started by smashedpumpkins, Apr 25, 2010.

  1. #1
    I'd like to put a bunch of commands into a .bat file and execute them each time I run the file. However I would like to continue typing in other commands manually. Is this possible? It just has me "Press any key to continue" if I pause it. Thanks

    Randy
     
    smashedpumpkins, Apr 25, 2010 IP
  2. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #2
    :a
    set /p a=Command:
    %a%
    goto a
     
    Pudge1, Apr 25, 2010 IP
  3. smashedpumpkins

    smashedpumpkins Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Perfect, thanks!
     
    smashedpumpkins, Apr 25, 2010 IP