0

I have a VBA script that a does a few things before installing a visual studio desktop application. Last line of the VBA script is:

CreateObject("WScript.Shell").Run("""\\Server\OurApplication\release\setup.exe""")

Once this VBA script is run, the application is installed and opens automatically, so the taskbar icon appears in he taskbar. However, because it's not pinned, it disappears as soon as I close the application.

I would like to add a line after this that pins the taskbar icon to the taskbar.

Is there a simple one-liner that can do this?

  • 2
    Does this answer your question? [Command line code to pin program to taskbar Windows 10?](https://superuser.com/questions/1193985/command-line-code-to-pin-program-to-taskbar-windows-10) – spikey_richie Jan 06 '22 at 15:52
  • Sort of. It suggests it isn't really possible without using some third party tool. However it is 4 years old, so I though there might be some updates since then. –  Jan 06 '22 at 16:09

0 Answers0