?
Solved

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

Posted on 2012-03-27
3
Medium Priority
?
3,745 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:
Raymond Peng earned 2000 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:Raymond Peng
ID: 37775115
Happy to help!

Ray
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Make the most of your online learning experience.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses
Course of the Month16 days, 1 hour left to enroll

850 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