Click here to Skip to main content
15,888,323 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am running C# code from my web application that needs to create a Directory Junction on a remote machine, with a target folder which is also on the same remote machine.
I am using JunctionPoint.cs library from https://www.codeproject.com/Articles/15633/Manipulating-NTFS-Junction-Points-in-NET. 
I am using UNC paths to create the symlink and the destination folders, from my web server. The directory junction does get created. But when I click on it, it says invalid Label, Directory or volume, which I am guessing is because of the UNC Path Target.
I cannot use the CreateSymbolicLink() function from C# as it doesn't create the directory junction.
Can you please guide me what's the best way to achieve this?
Thanks much!


What I have tried:


I have tried CreateSymbolicLink and it doesn't create the Directory Junction.
Posted
Comments
Karthik_Mahalingam 19-Jan-18 8:39am    
you shall ask directly to the author of the article
Add a Comment or Question[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900