Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

CMD flashes on and off

  • 23-09-2011 11:42am
    #1
    Registered Users, Registered Users 2 Posts: 620 ✭✭✭


    Hi I recently started computer programming. For anyone who has done it i am doing the basic hello world type programs. However my problem is after i compile the file and try to run it the cmd flashes and goes off every time. Now i have tried entering system("pause"); but still this isnt working. Any help would be great!


Comments

  • Closed Accounts Posts: 1,990 ✭✭✭JustAddWater


    have you tried to call the program by opening CMD and navigating to that directory and running it?

    If I have bat files they run and then close the CMD window automatically but when I open CMD first and then call them, the CMD window remains

    Hope that helps!


  • Registered Users, Registered Users 2 Posts: 620 ✭✭✭Laika1986


    I just tried that there and it worked fine! However i still think the problem remains as it wont run from the actual folder! Thanks though at least i know it's working!


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 94,296 Mod ✭✭✭✭Capt'n Midnight


    if you "run" a command from the start menu it exits when finished


    http://ss64.com/nt/cmd.html

    /K Carries out My_Command but remains

    haven't tried it since I usually have a cmd shell open somewhere

    cmd /K scriptything


Advertisement