Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get actual folder path of directory junction?

Tags:

windows-7

Few days ago I'll created directory junction using mklink command in windows 7.Now I want to know what is the actual link according to that directory junction.How I can achieve it without third party tools?

like image 473
Elshan Avatar asked Mar 02 '14 19:03

Elshan


People also ask

How do I find the path of a directory?

Click the Start button and then click Computer, click to open the location of the desired file, hold down the Shift key and right-click the file. Copy As Path: Click this option to paste the full file path into a document. Properties: Click this option to immediately view the full file path (location).

What shows the path of the current folder?

The pwd command displays the full, absolute path of the current, or working, directory.

How can I tell if a folder is a junction?

In Windows Explorer, a junction point is a folder with a shortcut icon in the bottom left corner. The picture is of a backup folder next to an example folder. The example folder is the junction that points to the backup folder.

How do you view junction point?

How to find all symbolic links, junction points and hard links in a folder in Windows Server quickly? Use dir /al /s /b . Displays a list of files and subdirectories in a directory. Dir displays a list of files and subdirectories in a directory.


1 Answers

Navigate to the folder containing your junction in cmd.exe and run:

dir /a:d

It should list all the directories in the folder including the junction, and should give the junction's real location.

like image 181
Sky Avatar answered Oct 15 '22 22:10

Sky