Jump to content

Inserting BAT to Tray notification area of Windows 10 [or some other file]

Cosinus Techno Sheets

Is there a way to put BAT file or LNK leading to it in the Tray notification area above the clock of Windows 10- so that it would be executable like some pinned permanently EXE to [my vertical] Taskbar?

Or any other script file format for that matter?

[And not, I cannot utilize for this specific need ordinary pinning to Taskbar, using sub-menu in or another bar or the Tray seen after clicking of Show hidden icons button]

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, Cosinus Techno Sheets said:

Is there a way to put BAT file or LNK leading to it in the Tray notification area above the clock of Windows 10- so that it would be executable like some pinned EXE to Taskbar?

Or any other script file format for that matter?

[And now, I cannot utilize for this specific need ordinary pinning to Taskbar, using sub-menu in or another bar or the Tray seen after clicking of Show hidden icons button]

Create a new link to cmd /c "path\to\file.bat". Drag link onto task bar.

 

https://superuser.com/questions/100249/how-to-pin-either-a-shortcut-or-a-batch-file-to-the-new-windows-7-8-and-10-task

Main System (Byarlant): Ryzen 7 5800X | Asus B550-Creator ProArt | EK 240mm Basic AIO | 16GB G.Skill DDR4 3200MT/s CAS-14 | XFX Speedster SWFT 210 RX 6600 | Samsung 990 PRO 2TB / Samsung 960 PRO 512GB / 4× Crucial MX500 2TB (RAID-0) | Corsair RM750X | Mellanox ConnectX-3 10G NIC | Inateck USB 3.0 Card | Hyte Y60 Case | Dell U3415W Monitor | Keychron K4 Brown (white backlight)

 

Laptop (Narrative): Lenovo Flex 5 81X20005US | Ryzen 5 4500U | 16GB RAM (soldered) | Vega 6 Graphics | SKHynix P31 1TB NVMe SSD | Intel AX200 Wifi (all-around awesome machine)

 

Proxmox Server (Veda): Ryzen 7 3800XT | AsRock Rack X470D4U | Corsair H80i v2 | 64GB Micron DDR4 ECC 3200MT/s | 4x 10TB WD Whites / 4x 14TB Seagate Exos / 2× Samsung PM963a 960GB SSD | Seasonic Prime Fanless 500W | Intel X540-T2 10G NIC | LSI 9207-8i HBA | Fractal Design Node 804 Case (side panels swapped to show off drives) | VMs: TrueNAS Scale; Ubuntu Server (PiHole/PiVPN/NGINX?); Windows 10 Pro; Ubuntu Server (Apache/MySQL)


Media Center/Video Capture (Jesta Cannon): Ryzen 5 1600X | ASRock B450M Pro4 R2.0 | Noctua NH-L12S | 16GB Crucial DDR4 3200MT/s CAS-22 | EVGA GTX750Ti SC | UMIS NVMe SSD 256GB / TEAMGROUP MS30 1TB | Corsair CX450M | Viewcast Osprey 260e Video Capture | Mellanox ConnectX-2 10G NIC | LG UH12NS30 BD-ROM | Silverstone Sugo SG-11 Case | Sony XR65A80K

 

Camera: Sony ɑ7II w/ Meike Grip | Sony SEL24240 | Samyang 35mm ƒ/2.8 | Sony SEL50F18F | Sony SEL2870 (kit lens) | PNY Elite Perfomance 512GB SDXC card

 

Network:

Spoiler
                           ┌─────────────── Office/Rack ────────────────────────────────────────────────────────────────────────────┐
Google Fiber Webpass ────── UniFi Security Gateway ─── UniFi Switch 8-60W ─┬─ UniFi Switch Flex XG ═╦═ Veda (Proxmox Virtual Switch)
(500Mbps↑/500Mbps↓)                             UniFi CloudKey Gen2 (PoE) ─┴─ Veda (IPMI)           ╠═ Veda-NAS (HW Passthrough NIC)
╔═══════════════════════════════════════════════════════════════════════════════════════════════════╩═ Narrative (Asus USB 2.5G NIC)
║ ┌────── Closet ──────┐   ┌─────────────── Bedroom ──────────────────────────────────────────────────────┐
╚═ UniFi Switch Flex XG ═╤═ UniFi Switch Flex XG ═╦═ Byarlant
   (PoE)                 │                        ╠═ Narrative (Cable Matters USB-PD 2.5G Ethernet Dongle)
                         │                        ╚═ Jesta Cannon*
                         │ ┌─────────────── Media Center ──────────────────────────────────┐
Notes:                   └─ UniFi Switch 8 ─────────┬─ UniFi Access Point nanoHD (PoE)
═══ is Multi-Gigabit                                ├─ Sony Playstation 4 
─── is Gigabit                                      ├─ Pioneer VSX-S520
* = cable passed to Bedroom from Media Center       ├─ Sony XR65A80K (Google TV)
** = cable passed from Media Center to Bedroom      └─ Work Laptop** (Startech USB-PD Dock)

Retired/Other:

Spoiler

Laptop (Rozen-Zulu): Sony VAIO VPCF13WFX | Core i7-740QM | 8GB Patriot DDR3 | GT 425M | Samsung 850EVO 250GB SSD | Blu-ray Drive | Intel 7260 Wifi (lived a good life, retired with honor)

Testbed/Old Desktop (Kshatriya): Xeon X5470 @ 4.0GHz | ZALMAN CNPS9500 | Gigabyte EP45-UD3L | 8GB Nanya DDR2 400MHz | XFX HD6870 DD | OCZ Vertex 3 Max-IOPS 120GB | Corsair CX430M | HooToo USB 3.0 PCIe Card | Osprey 230 Video Capture | NZXT H230 Case

TrueNAS Server (La Vie en Rose): Xeon E3-1241v3 | Supermicro X10SLL-F | Corsair H60 | 32GB Micron DDR3L ECC 1600MHz | 1x Kingston 16GB SSD / Crucial MX500 500GB

Link to comment
Share on other sites

Link to post
Share on other sites

32 minutes ago, Cosinus Techno Sheets said:

[...]

I cannot utilize for this specific need ordinary pinning to Taskbar

[...]

I need to add a sturdy / always visible button to my vertical Taskbar- which means it needs to be accessible above the clock, so that it will not disappear when I will have an excess of opened windows

Link to comment
Share on other sites

Link to post
Share on other sites

  • 4 months later...

I was looking for this exact thing, and unfortunately there's no native way to do this. However, after looking around, I figured out that you can make a basic AutoHotKey script to do this.

 

You need to install AutoHotKey v2, and then I uploaded the script I made to GitHub so just download/copy that. Change the editable stuff to point to your file, icon, etc and then run it. The one small downside to this is that the script doesn't auto-run by default, so you'll need to manually do that or make the script a startup program/scheduled task.

 

I tried to document every step so both I knew what was going on and so others can hopefully learn from it.


full disclaimer: i had zero prior knowledge of AHK before doing this, so this might be really bad. i dunno honestly, it works pretty well for me

 

Hope this works for u!

 

image.png.4ee99b0071922c22e1b3695fdfe8ca9e.png

Link to comment
Share on other sites

Link to post
Share on other sites

This looks interesting, also for other tasks; thank you. But if the purpose of such AHK in Tray would be to run [upon clicking its icon] of some other script that would kill all kinds of scripts [including AHK ones]- then this one would also be killed thus disappear from Tray, right? And as it would only work once before being re-opened it would not be able to break fast loops of some ill scripts being fired up rapidly, by me quickly clicking it multiple times. And believe me when I say that not once had my limited coding skills resulted in my Taskbar being flooded with icons representing e.g. CMD windows

 

So the only way I could utilize this would be if I would be using only this one AHK V2 script, while indulging [like I do now] in using AHK V1 for everything else [or the other way around i.e. assuming it can be done I would need to rewrite this to AHK V1 code and from now one use AHK V2]

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×