Find the answer to your Linux question:
Results 1 to 8 of 8
i know this isnt windows forums,but i couldnt find one so heres my problem: When trying to run .bat files command prompt opens for a milisecond and closes again...
  1. #1
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549

    command line

    i know this isnt windows forums,but i couldnt find one

    so heres my problem:
    When trying to run .bat files command prompt opens for a milisecond and closes again

  2. #2
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    Have you tried selecting 'Run' then typing cmd ... Then running your batch file from there? You can type dir/w to see which directory you're in. Then navigate to the correct one. For eg. cd mydir ... then type the name of the batch file.

    Ages since I tried though.
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by jan1024188
    When trying to run .bat files command prompt opens for a milisecond and closes again
    as fingal suggested, execute .bat file in RUN box or in terminal. what are the contents of .bat file? i think your file doesn't need user interaction. it did its work and exited.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    ok it worked

    Now i have another problem
    Im using Dec-c++ and i wrote test program in C.Now that compiles well but when trying to run it happens the same thing.Command prompt apears and disapears on a screen...

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    add getch() or a scanf statement at the end to hold screen for a while.



    EDIT: why did you start this thread in 'The Coffee Lounge'?


    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    where could i post it...these are linux forums

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by jan1024188
    where could i post it...these are linux forums
    may be in Misc section...




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    ok...next time ill post stuff like that there.....
    anyway, if moderator wants than moves threads(i think)...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •