Vista: Create or delete NTFS symbolic link or symlinks

Filed Under: Windows Vista

In windows vista and windows server 2008, NTFS symbolic link or symlink is a file-system object that points to another file system object in the NTFS filesystem.
To execute the following Create or delete commands go to “Run” and start the command line interpreter – cmd.exe

mklink command:

C:\test>mklinkCreates a symbolic link.MKLINK [[/D] | [/H] | [/J]] Link Target/D Creates a directory symbolic link.
Default is a file symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link specifies the new symbolic link name.
Target specifies the path (relative or absolute) that the new link
refers to.

How to create a symbolic link to a file in windows vista?

C:\test>mklink foo c:\Windows\system32\notepad.exe

symbolic link created for foo <<===>> c:\Windows\system32\notepad.exe

C:\test>dir

Volume in drive C has no label.
Volume Serial Number is 2211-7428

Directory of C:\test

04/14/2006 11:24 AM <dir> .
04/14/2006 11:24 AM <dir> ..
04/14/2006 11:24 AM <symlink> foo [c:\Windows\system32\notepad.exe]
1 File(s) 0 bytes
2 Dir(s) 69,238,722,560 bytes free

How to create a symbolic link to a directory in windows vista?

C:\test>mklink /d bar c:\windows

symbolic link created for bar <<===>> c:\windows

C:\test>dir

Volume in drive C has no label.
Volume Serial Number is 2211-7428

Directory of C:\test

04/14/2006 11:24 AM <dir> .
04/14/2006 11:24 AM <dir> ..
04/14/2006 11:24 AM <symlinkd> bar [c:\windows]
04/14/2006 11:24 AM <symlink> foo [c:\Windows\system32\notepad.exe]
1 File(s) 0 bytes
3 Dir(s) 69,238,722,560 bytes free

How to delete a symbolic link to a file in windows vista?

C:\test>del foo

C:\test>dir

Volume in drive C has no label.
Volume Serial Number is 2211-7428

Directory of C:\test

04/14/2006 11:24 AM <dir> .
04/14/2006 11:24 AM <dir> ..
04/14/2006 11:24 AM <symlinkd> bar [c:\windows]
0 File(s) 0 bytes
3 Dir(s) 69,238,722,560 bytes free

How to delete a symbolic link to a directory in windows vista?

C:\test>rmdir bar

C:\test>dir

Volume in drive C has no label.
Volume Serial Number is 2211-7428

Directory of C:\test

04/14/2006 11:24 AM <dir> .
04/14/2006 11:24 AM <dir> ..
0 File(s) 0 bytes
2 Dir(s) 69,238,722,560 bytes free

Related Videos

How to Create Symbolic Links in Windows 8, 7, Vista for Extra Space
How to Create Symbolic Links in Windows 8, 7, Vista for Extra Space
Symbolic link using mklink
Symbolic link using mklink
CentOS 7 : Correctly Remove Symbolic Links
CentOS 7 : Correctly Remove Symbolic Links
Create Symbolic Links in Windows
Create Symbolic Links in Windows
mklink use junction command
mklink use junction command
One comment on “Vista: Create or delete NTFS symbolic link or symlinks
  1. […] Read How to create or delete NTFS symbolic link or symlinks in windows vista? […]

  2. Thanks so much for this post. It really helps those who are new to windows command line…like me. Thanks again!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Recommended Videos

How to Create Symbolic Links in Windows 8, 7, Vista for Extra Space
How to Create Symbolic Links in Windows 8, 7, Vista for Extra Space
Symbolic link using mklink
Symbolic link using mklink
CentOS 7 : Correctly Remove Symbolic Links
CentOS 7 : Correctly Remove Symbolic Links
Create Symbolic Links in Windows
Create Symbolic Links in Windows
mklink use junction command
mklink use junction command