Solved

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

Posted on 2012-03-27
3
2,790 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Survey branching tutorial 11 43
Merging two files with Perl 5 30
add if statement powershell 8 24
Java pass by reference 3 20
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.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

733 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