K
K
kuryakin2021-08-09 00:35:35
cmd/bat
kuryakin, 2021-08-09 00:35:35

How to create your own hidden icon?

I have a bat script that starts when Window 10 starts. After starting Window, the script console hangs in the taskbar. How to send script icon to hidden icons?
61104d73c0f71679964735.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
res2001, 2021-08-09
@kuryakin

The area on the right side of the taskbar is the "tray". And this is not an area of ​​hidden tasks. Windows has a special API so that an application can place its own icon in the tray. The application itself must be able to do this (or it can be done with a third application, see benipaz 's answer ). cmd.exe can't do that.
There are a lot of hidden tasks in Windows and you can't see their windows and icons anywhere. To check, just open the task manager and go to the details tab - in this list are the processes that are currently running in your Windows. How many icons from this list do you see in the taskbar and in the tray?

I have a bat script that runs on Windows 10 startup

Why not terminate this start script? Then it will not hang in the taskbar.
Another option - you can run this script from the scheduler on the user login event. Tasks from the scheduler run in stealth mode by default.
There is also another option - run the batch file in hidden mode through an intermediate small script in JavaScript or VBScript. Examples are easy to google. At the same time, you can embed a JavaScript script in a batch file, so both scripts will physically be in the same file. The technique of introducing a JavaScript script into a batch file can also be googled, there is nothing complicated there.

Y
Yan, 2021-08-09
@Slayer_nn

No way. There is no such functionality in cmd.
Only a scheduler, with a checkbox for a hidden task.
I think you'll figure it out yourself

B
benipaz, 2021-08-09
@benipaz

only by external applications. e.g. Minimize to Tray Tool

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question