Creating symlink for a file on Windows 7 gives error

peter7558

I want to create symlink to a file using the command prompt on Windows 7. The file is located on E partition and i want the link to be on C partition. I tried this command: C:\>mklink /d c:\11.txt e:\Test\11.txt and it said that the symbolic link was created successfully but if i click on the link i get this error massage: 'The directory name is invalid'

What is the right way to create symlink for a file from different partition?

Seth

By using mklink /D you're telling it to create a directory symbolic link and D:\test\11.txt is not a directory. So if you try to access the directory C:\11.txt it will give you an error.

Just leave out the /D and it should work.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Creating symlink gives 500 Internal Server Error

From Dev

Creating symlink gives 500 Internal Server Error

From Dev

Creating a symlink gives cannot overwrite directory error

From Dev

Creating a linux symlink on Windows?

From Dev

Windows Vim symlink config file persistent error

From Dev

Creating a .reg file for Windows 7

From Dev

Windows gives error with package.json file

From Dev

Windows gives error with package.json file

From Dev

Finding file by name recursively, deleting it and creating a symlink

From Dev

Connecting to Windows7 share gives mount error

From Dev

Add symlink file as file using Git on Windows

From Dev

Error 'File is a symlink to a non-existent target'

From Dev

Creating Themes in Windows 7

From Dev

Creating a file in TCL on windows

From Dev

creating simple thread in swift gives error

From Dev

Creating a simple Iteratee gives type error ?

From Dev

creating simple thread in swift gives error

From Dev

Detect broken symlink in PHP on Windows 7 + Apache environment

From Dev

In Windows 7, can I create a Symlink or Junction for winsxs or installer folders

From Dev

Creating a Symlink in an NTFS share

From Dev

Creating Broken Symlink

From Dev

Creating symlink for Postgres

From Dev

Installing jdk1.7 for 32 bit windows 7, but it gives error that its not a valid Win32 application

From Dev

Lib GDX html running gives an error with System Java Compiler (Eclipse) (Windows 7)

From Dev

Installing jdk1.7 for 32 bit windows 7, but it gives error that its not a valid Win32 application

From Dev

Copying new files to network drive in windows 7 gives me the error: Path does not exist

From Dev

Resolvconf -u gives the error "resolvconf: Error: /etc/resolv.conf must be a symlink"

From Dev

Resolvconf -u gives the error "resolvconf: Error: /etc/resolv.conf must be a symlink"

From Dev

Importing a text file gives error

Related Related

  1. 1

    Creating symlink gives 500 Internal Server Error

  2. 2

    Creating symlink gives 500 Internal Server Error

  3. 3

    Creating a symlink gives cannot overwrite directory error

  4. 4

    Creating a linux symlink on Windows?

  5. 5

    Windows Vim symlink config file persistent error

  6. 6

    Creating a .reg file for Windows 7

  7. 7

    Windows gives error with package.json file

  8. 8

    Windows gives error with package.json file

  9. 9

    Finding file by name recursively, deleting it and creating a symlink

  10. 10

    Connecting to Windows7 share gives mount error

  11. 11

    Add symlink file as file using Git on Windows

  12. 12

    Error 'File is a symlink to a non-existent target'

  13. 13

    Creating Themes in Windows 7

  14. 14

    Creating a file in TCL on windows

  15. 15

    creating simple thread in swift gives error

  16. 16

    Creating a simple Iteratee gives type error ?

  17. 17

    creating simple thread in swift gives error

  18. 18

    Detect broken symlink in PHP on Windows 7 + Apache environment

  19. 19

    In Windows 7, can I create a Symlink or Junction for winsxs or installer folders

  20. 20

    Creating a Symlink in an NTFS share

  21. 21

    Creating Broken Symlink

  22. 22

    Creating symlink for Postgres

  23. 23

    Installing jdk1.7 for 32 bit windows 7, but it gives error that its not a valid Win32 application

  24. 24

    Lib GDX html running gives an error with System Java Compiler (Eclipse) (Windows 7)

  25. 25

    Installing jdk1.7 for 32 bit windows 7, but it gives error that its not a valid Win32 application

  26. 26

    Copying new files to network drive in windows 7 gives me the error: Path does not exist

  27. 27

    Resolvconf -u gives the error "resolvconf: Error: /etc/resolv.conf must be a symlink"

  28. 28

    Resolvconf -u gives the error "resolvconf: Error: /etc/resolv.conf must be a symlink"

  29. 29

    Importing a text file gives error

HotTag

Archive