How to bring CMD.EXE window to top? (I would prefer a command or script without a need to compile anything).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Wscript.Shell object accessible from Windows Script Host (either VBS or JS) has a method called ‘AppActivate’ which, when passed a window title, will attempt to ‘activate’ (which may bring it to the foreground if it’s not minimised).
The following code snippet in VBScript worked on my machine:
(Edited: Initially I hadn’t tried it. Then I did)