윈도7 심볼릭 링크 만들기 및 삭제하기
먼저 command 창을 관리자 권한으로 실행시키는 것이 필요.
보조프로그램에서 "명령 프롬프트"를 마우스 우 클릭으로 관리자 권한 실행
출처 http://techblissonline.com/vista-create-or-delete-ntfs-symbolic-link-or-symlinks/
심볼릭 링크를 만드는 mklink 명령 형식
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.
파일에 대한 심볼릭 링크 만들기
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-7428Directory 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
디렉토리에 대한 심볼릭 링크 만들기
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-7428Directory 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
파일 심볼릭 링크 지우기
C:\test>del foo
C:\test>dir
Volume in drive C has no label.
Volume Serial Number is 2211-7428Directory 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
디렉토리 심볼릭 링크 지우기
C:\test>rmdir bar
C:\test>dir
Volume in drive C has no label.
Volume Serial Number is 2211-7428Directory 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