# Cursor Symlinks disrupting both Code and Cursor commands

**URL:** <https://forum.cursor.com/t/cursor-symlinks-disrupting-both-code-and-cursor-commands/2577>\
**Category:** Bug Reports\
**Created:** [January 26, 2024, 7:03pm UTC](https://forum.cursor.com/t/cursor-symlinks-disrupting-both-code-and-cursor-commands/2577 "2024-01-26T19:03:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![geezy](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@geezy](https://forum.cursor.com/u/geezy)\
**Post date:** [August 5, 2024, 4:27am UTC](https://forum.cursor.com/t/cursor-symlinks-disrupting-both-code-and-cursor-commands/2577/6 "2024-08-05T04:27:37Z")

</div>

For Windows `code` symlink:  
There are 2 (maybe more can work) ways that worked for me -  
A.

1. Go here and remove all the files named `code`:  
`c:\Users\<username>\AppData\Local\Programs\cursor\resources\app\bin`
2. Restart your terminal

B. As @a-hussien mentioned,  
“ **Move up** ” your `VScode` path upon the `cursor` path on the environment variables’ **Path** table:  
 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/4/49d013d2a849b0acc7aebc4bdc8554330809e8db.png)

In my case, the `VScode` path was inside the “user **Path** variables” table, and the `cursor` path was inside the “system **Path** variables” table. I added the `VScode` path (copied from the “user…table”) to the “system…table” and moved it up.

If we’re in the same boat, now, you have a choice to make.  
Either take both to the same table and reorder, or delete one from one table and add to the other.

However, be careful, system **Path** variables get higher priority over user **Path** variables!

Some ref:

> [@How to prevent the "code . " command in the terminal from opening Cursor](https://forum.cursor.com/t/how-to-prevent-the-code-command-in-the-terminal-from-opening-cursor/1983/5):
>
> If you’re in Windows, open Run (Win+R) and type: %localappdata%\Programs\cursor\resources\app\bin Delete two files: code code.cmd I hope this helped.

---

_[View the full topic](https://forum.cursor.com/t/cursor-symlinks-disrupting-both-code-and-cursor-commands/2577)._
