I am trying to create a batch file that creates symbolic links based on a selection of folders. The problem I am having is selecting the folders that I want to create the symbolic links from.
Here is an example of what I mean. I have Drive P: which has the following folders:
What I want to do is for symbolic links to be made from say Pathfinder to Patton alphabetically. The code I currently have is here and can only select a folder based on a name filter. Is there a filter or way of sorting that will allow me to do this? This is the code I have.
forfiles /s /m %filter% /c "cmd /c IF @isdir==TRUE mklink /D %target%\@relpath %cd%\@relpath"