How to execute a shortcut with space in the target field from the command line?

479 Views Asked by At

For example, I am trying to execute a Dynamics GP shortcut icon from the command line.

Target is as follows:

"C:\Program Files (x86)\Microsoft Dynamics\GP2018\Dynamics.exe" Dynamics.set

What is the command to execute the following shortcut through Windows command line without double clicking on the shortcut icon in order to open it?

1

There are 1 best solutions below

0
Steve Gray On

"C:\Program Files (x86)\Microsoft Dynamics\GP2015\Dynamics.exe" "C:\Program Files (x86)\Microsoft Dynamics\GP2015\Dynamics.set"

It took me a few tries to do it, but that worked