How can I fix the command to open ' code . ' VS Code and ' cursor . ' Cursor? What command should I use to open a folder in Cursor?

As a Windows user, I have tried multiple times to fix an issue by changing the path in the system environment variables, but without success.

Now, I am encountering the following error message: “Unable to determine app path from symlink: /c/Users/[computername]/AppData/Local/Programs/cursor/resources/app/bin/code.”

Could anyone help?

Have you tried running the Shell Command: Install 'cursor' command command from the Command Palette in Cursor? Maybe that will fix the command.

Manually Add Cursor AI to Your PATH

For Windows:

Locate the Cursor AI Installation Directory:
By default, Cursor AI is installed in:
C:\Users<YourUsername>\AppData\Local\Programs\Cursor\resources\app\bin

    • Click on Environment Variables .
    • Under System variables , find and select the Path variable, then click Edit .
    • Click New and add the path to the Cursor AI bin directory (e.g., C:\Users\<YourUsername>\AppData\Local\Programs\Cursor\resources\app\bin).

Run the following command to confirm that cursor is now recognized:

cursor --version