E
E
Eugene2021-10-11 04:00:54
PowerShell
Eugene, 2021-10-11 04:00:54

How to create a shortcut to launch an application via PowerShell in Windows 11?

Googled, tried various solutions, but as a result, after a double click, the PowerShell window opens and closes.
Now a shortcut with these paths:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command "cd D:\Distrib\stest.exe"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Drno, 2021-10-11
@Drno

Because cd is the command to move to the directory
Since you already specify the path to the file, this command is unnecessary

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question