Q:

Shortcut that runs command prompt and runs two lines of code

I open cmd and write cd Desktop\PES and then I write again pes.exe to run the pes.exe file. Now, I want to ask if the above two commands can be written as one in the cmd and how can I create a shortcut (right click -> New -> Shortcut) in order to run the above code?

A:

Have you considered a batch script? Write those commands into notepad and save with .bat extension. Can run as one command in cmd and, though wouldn't be technically a shortcut, could be saved to desktop.

