All cmd windows suddenly minimising to the taskbar.

martinlest

New member
Power User
VIP
Local time
7:14 PM
Messages
661
The past few days, whenever a cmd window opens (usually via a batch script or vbs file, but if I go to the Search box, type cmd and click on the cmd.exe result, that also does the same thing), the window opens on my desktop but immediately minimises to the taskbar. I want things back the way they were (no idea why the behaviour has changed), so that it remains up on my desktop, in its usual normal window, and I can read it. I am currently having to go down to the taskbar every time to bring it back up (which as I use quite a lot of scripting, is getting very frustrating).

If I launch the script from a shortcut, it will open normally; whereas if I click on the script file itself, it goes to the taskbar. Since many batch or vbs scripts I run are part of a larger one, they are all pointed to the .bat or .vbs script itself, not to a shortcut. For example, this extract from a vbs script, which launches the batch script from the bat file (not a shortcut to that file):

Code:
Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""C:\Users\Martin\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Batch Files\FS\PF3-XP_ini.bat""")
Set objShell = Nothing
Just to be clear, I have no instruction in the script itself for this to happen and scripts that I have used for years are now all being sent to the taskbar the second they open, instead of remaining in a readable window, as they always have in the past.

Can anyone please help me with this? Thanks.
 
Last edited:

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium SP1 64-bit
CPU
Intel Core i7-4790K CPU @ 4.5GHz
Motherboard
Asus H97I-PLUS
Memory
16GB KINGSTON HYPER-X FURY DUAL-DDR3 1600MHz
Graphics Card(s)
8GB NVIDIA GEFORCE GTX 1070
Monitor(s) Displays
HannsG 28" & Dell 24"
Screen Resolution
1920x1200
Hard Drives
1 x 2TB Samsung Evo 860 SSD
2 x 500GB Samsung Evo 850 SSD
PSU
CORSAIR 650W CS SERIES
Case
Thermaltake Core V1 Mini ITX Cube
Cooling
NOCTUA NH-L12
Browser
Firefox
Other Info
Custom PC used for X-Plane 11
I tracked down the problem just this minute. I suddenly realised what must have happened. Sure enough, I have Windows Manager installed (which remembers window sizes on positions on multiple monitors) and the 'Freeze' option was off. So at some stage over the past few days I had obviously had a cmd window open and minimised it - WM had remembered this so that cmd windows always opened minimised thereafter. Don't know why that didn't occur to me sooner.

Luckily I had thought that this might happen and had made abackup of the WM profile. I just restored it and all is OK again.

Sorry for what in effect was a false alarm!
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium SP1 64-bit
CPU
Intel Core i7-4790K CPU @ 4.5GHz
Motherboard
Asus H97I-PLUS
Memory
16GB KINGSTON HYPER-X FURY DUAL-DDR3 1600MHz
Graphics Card(s)
8GB NVIDIA GEFORCE GTX 1070
Monitor(s) Displays
HannsG 28" & Dell 24"
Screen Resolution
1920x1200
Hard Drives
1 x 2TB Samsung Evo 860 SSD
2 x 500GB Samsung Evo 850 SSD
PSU
CORSAIR 650W CS SERIES
Case
Thermaltake Core V1 Mini ITX Cube
Cooling
NOCTUA NH-L12
Browser
Firefox
Other Info
Custom PC used for X-Plane 11
Back
Top