Solved

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

Posted on 2012-03-27
3
2,322 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to dynamically set the form action using jQuery.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now