topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday February 25, 2021, 4:49 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Figured out how to keep the cmd window open, i.e. stop it from closing.  (Read 534 times)

jinxx

  • Supporting Member
  • Joined in 2014
  • **
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
Probably not news to most of you but took me ages to figure out, to run a cmd window without it closing itself use:
    shellexec cmd.exe /k $$1

because you're running the /k flag on cmd.exe it won't close until cmd.exe "exits" via you closing it. As opposed to running the /k on your application, which for something like ipconfig just instantly closes