Computer Hope

Microsoft => Microsoft DOS => Topic started by: ham fam on December 16, 2021, 09:18:35 AM

Title: Minimize an already open window?
Post by: ham fam on December 16, 2021, 09:18:35 AM
I'm trying to use my batch file, to close a previously opened window.  for some reason I can't open it minimized via the batch file. The program is housed on a server i don't have direct access to.  So it seems to me, finding a way to minimize it is the answer.
Title: Re: Minimize an already open window?
Post by: patio on December 16, 2021, 06:22:29 PM
What program ? ?...what is the server running OS ? ?...if it's not your server you will get no help here.
Title: Re: Minimize an already open window?
Post by: Geek-9pm on December 16, 2021, 07:41:04 PM
I agree with Patio. More detail needed here.
A possible workaround. Use dual monitors. That way you have a place so something else while the remote program dominates your first monitor.
Title: Re: Minimize an already open window?
Post by: ham fam on December 17, 2021, 06:52:11 AM
The server isn't mine.  I don't know what version of software runs on the server.  What i do know is that in order to access schematics for the equipment we manufacture, I need to run an App.  I have a shortcut that i was provided for this app.  The shortcut opens a window, inside this window are buttons which launch other programs for viewing prints, printing prints and converting them to PDF.  What I am looking for is the Original window that pops up, which is just a standard window in my mind, just like all the other windows that pop up on my taskbar.  It always pops up on the main screen and is 3 times bigger than it needs to be.  So every morning I fire that app open, then move it to another monitor, and shrink it down so that only the 3 buttons that i will actually use are still visible.  I was trying to automate some of this.  My laptop runs Windows 10.  I think this App, may use Excel, as sometimes an error pops up about excel.  I think if this app is launching at the same time as opening another Excel program, that happens.
Title: Re: Minimize an already open window?
Post by: Hackoo on December 23, 2021, 01:29:22 PM
You can try to minimize all windows with this batch that use a powershell :

Code: [Select]
@echo off
Title Minimize All Windows
Powershell -C "(New-Object -ComObject Shell.Application).MinimizeAll()"
Title: Re: Minimize an already open window?
Post by: ham fam on January 04, 2022, 10:54:00 AM
I wonder if I can use a variation of what you wrote to only close this one window which is titled "Megtec Apps"?