Batch files ain't working now.

Discussion in 'Scripting' started by Ganknam, Oct 25, 2012.

  1. Ganknam

    Ganknam MDL Novice

    Oct 20, 2012
    5
    1
    0
    So i made a .bat file and when i double click on it i see the cmd popup and go away again and nothing happens.

    Like if i ran "@echo off msg * Hi" it would popup a windows box with hi in it, but nothing happens anymore.

     
  2. user_hidden

    user_hidden MDL Expert

    Dec 18, 2007
    1,034
    1,062
    60
    try placing the command "pause" as last line.
    it will make the command window stay there until you press any key.
     
  3. Dos_Probie

    Dos_Probie MDL Member

    Jul 18, 2012
    249
    86
    10
    Take the @echo off as well so you can see the console script as it runs , and might help if you post the code so we can check it out ..
     
  4. quantahis

    quantahis MDL Novice

    Jul 26, 2012
    21
    3
    0
    Thanks for sharing the information.
     
  5. d.karakasa

    d.karakasa MDL Novice

    Sep 20, 2012
    28
    1
    0
    post your batch script?