Solved Run program multiple times via batch file or powershell


esskaykay

New member
Local time
12:27 PM
Posts
2
OS
Win10
Is it possible to open a program twice with different names? The reason I ask is I have a screen widget (digital clock) that I want displayed in a couple locations on my desktop depending on what’s running. I only want it displayed a second time when one program is running (Spotify).

So, first off, the clock would be displayed upon boot in one specific location and permanently remain in that location. I was hoping to write a small batch file or something that reloads the clock program in a different location before it opens Spotify. Then, upon closing Spotify, the second instance of clock would be closed leaving the original instance still in place.

I have been able to do this manually – that is, open D_Clock.exe twice and manually close the second instance. However, I’d like to do this via some routine. I understand batch files and simple PowerShell routines. I also have a Bat2Exe program that creates an executable from a batch file.

Any suggestions would be appreciated.
 
Windows Build/Version
Win10

My Computer

System One

  • OS
    Win10
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS13
    CPU
    i7
    Memory
    8GB
    Hard Drives
    250GB SSD
Last edited:

My Computer

System One

  • OS
    Windows 7
You ought to have said that you had asked this question in two different forums. Your question had already been answered before I spent time & effort on you.

Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
I'm in agreement, don't cross-post the same question unless you've been asked to redirect your question to a better site.
 

My Computer

System One

  • OS
    Windows 7
I have solved this problem. Thank you very much for your support and assistance.
Steve K.
 

My Computer

System One

  • OS
    Win10
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS13
    CPU
    i7
    Memory
    8GB
    Hard Drives
    250GB SSD

Latest Support Threads

Back
Top Bottom