topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday March 29, 2024, 3:45 am
  • 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 4713 times)

jinxx

  • Supporting Member
  • Joined in 2014
  • **
  • default avatar
  • Posts: 10
    • 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

dreftymac

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 17
    • View Profile
    • Donate to Member
This is a good reminder, thanks for the post.