Solved

call a a.exe from batch, but bring to front

Posted on 2012-03-27
3
2,664 Views
Last Modified: 2012-06-27
I need to be able to start a .exe file from batch script, but bring it to front of all the other open windows.  How can I do this from inside the batch?
0
Comment
Question by:icecom4
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
l33tf0b earned 500 total points
ID: 37774238
@ECHO OFF

start /max notepad.exe
start /min notepad.exe


this forces it to be focused i think and is maximized / minimized.
0
 
LVL 4

Expert Comment

by:kdebugs
ID: 37774914
Awesome tip. Thanks! I didn't know that!

Alex
0
 
LVL 16

Expert Comment

by:l33tf0b
ID: 37775115
Happy to help!

Ray
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question