How to Create a Symbolic/Soft Link to a File Not a Folder
Im Trying to Create a Symbolic Link to a Text File with Directory: C: \Users\Me\Textfile. Txt Where the Shortcut Is in the Same Folder (For Simplicity) Using...
Im trying to create a symbolic link to a text file with directory:
C:\users\me\textfile.txt
where the shortcut is in the same folder (for simplicity)
using command:
mklink /d "C:\users\me\textfileshortcut.txt" "C:\users\me\textfile.txt"
but this just creates a folder with the name textfileshortcut.txt and not a shortcut to a file.
What am i doing wrong?
Note: I am using windows 7
1 Answer
You are using the directory /d flag. Remove this flag and you will make links to files rather than directories.
For example,
mklink "C:\users\me\textfileshortcut.txt" "C:\users\me\textfile.txt"
Source: ()