New
#31
I have just used the VBScript in post #23 to run the batch file in post #9.
I see no pop-up window, and nothing appears on the taskbar.
Dave,
There is only the barest of logic behind this idea but you might find that reinstalling your display driver might address both this hidden script issue and your volume decreasing issue.
- The thought occurs to me that, if your display driver has become corrupted in use, then it might disobey the instructions given to it.
If your display adapter was part of the computer when you bought it then get the display driver from the computer maker. If it was a separate purchase then get it from the display card maker.
I am not suggesting that you need to update it.
I am suggesting that the act of installing it again would overwrite any corruption that existed.
While you are at it, you might usefully check for any updated bios at the same time because that also interacts with the display.
This might be a waste of your time but there is no diagnostic test to rule out display driver corruption [and Windows update & Device mgr are no help as they merely check driver dates & version numbers not integrity].
Best of luck,
Denis
Dave,
Another illogical experiment would be to insert this as the first line of the batch file
then seeing if the script runs hidden for the first 10 seconds and only appears after that.Code:timeout /t 10
If so, it rather points the finger at the PS command line. In which case, another thing that might be worth experimenting with could be altering the powershell command to run hidden.
But I do not know if any of this will do any good because I do not know why you are having the problem at all.
I agree with you that seeing the same behaviour on your other computer exonerates your display driver [unless you have the same display cards on both].
Denis
I've figured it... you're gonna be kinda mad, but here goes. Basically I had:
if not DEFINED IS_MINIMIZED set IS_MINIMIZED=1 && start "" /min "%~dpnx0" %* && exit
... script logic here ...
exit
From:
windows - How do I minimize the command prompt from my bat file - Stack Overflow
Which I should've definitely tried removing first... kinda forgot about them completely. But yeah, sorry for this, I can now launch it hidden
Dave,
I'm just glad that it is both fixed and explained.
I have seen that minimising code before but I always rely on using the vbs file intermediary to do that job. Where I suggested a vbs command that ended in …, 0 for running hidden, you could use it with …, 7 to run minimised.
All the best,
Denis