TuliTaivas
asked on
What is the filename extension of a directory junction?
Hi
I have a junction in a directory of a Windows 2008 R2 server like
>dir /A:L e:\folder\dirname.*
11.08.2016 14:02 <JUNCTION> dirname [f:\folder\dirname]
What I found is that
dir /A:L e:\folder\dirname or
dir /A:L e:\folder\dirname.
both return a "File Not Found" error.
To list the junction i need to use
dir /A:L e:\folder\dirname.? or
dir /A:L e:\folder\dirname.?*
dir /A:L e:\folder\dirname.*
Apparently the filename extension is one char long. But which char? I tried a-z and 0-9 with no luck.
Does anybody know?
Thanks
Roger
I have a junction in a directory of a Windows 2008 R2 server like
>dir /A:L e:\folder\dirname.*
11.08.2016 14:02 <JUNCTION> dirname [f:\folder\dirname]
What I found is that
dir /A:L e:\folder\dirname or
dir /A:L e:\folder\dirname.
both return a "File Not Found" error.
To list the junction i need to use
dir /A:L e:\folder\dirname.? or
dir /A:L e:\folder\dirname.?*
dir /A:L e:\folder\dirname.*
Apparently the filename extension is one char long. But which char? I tried a-z and 0-9 with no luck.
Does anybody know?
Thanks
Roger
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@Shaun
Thanks for the screenshot. I noticed that you write "this command ... works: dir /a:l c:\users\shaun" however in the screen shot i can only see a simple "dir". What I like to get returned is just one line with that particular JUNCTION, not the entire directory or the content of the directory the junctions points to. Hence I was trying to give the exact name of the junction in my command (which didn't work). Sorry if I didn't explain it good enough.
As I understand now (thanks to Qlemo), my example
> dir /A:L e:\folder\dirname
would NOT list the junction of that name within the e:\folder directory, but rather the junctions within the directory "e:\folder\dirname". However, since "e:\folder\dirname" is a junction to "f:\folder\dirname", the junctions within the latter would get listed with this command. And since in that directory there is no junction, I get a "file not found". (see also Qlemo's answer).
best regards
Roger
Thanks for the screenshot. I noticed that you write "this command ... works: dir /a:l c:\users\shaun" however in the screen shot i can only see a simple "dir". What I like to get returned is just one line with that particular JUNCTION, not the entire directory or the content of the directory the junctions points to. Hence I was trying to give the exact name of the junction in my command (which didn't work). Sorry if I didn't explain it good enough.
As I understand now (thanks to Qlemo), my example
> dir /A:L e:\folder\dirname
would NOT list the junction of that name within the e:\folder directory, but rather the junctions within the directory "e:\folder\dirname". However, since "e:\folder\dirname" is a junction to "f:\folder\dirname", the junctions within the latter would get listed with this command. And since in that directory there is no junction, I get a "file not found". (see also Qlemo's answer).
best regards
Roger
Your understanding is correct. Any use with a wildcard in the name will work; for legacy reasons .* and .? etc. are treated like * .
Open in new window