mklink /D symfolder "c:\Users\username\Documents\My Folder\"Note: The /D is there because, in this example, we are linking to a directory. symfolder is the name of our symbolic link, you can change that to whatever you want. And, we have quotes around the target because there is a space in the name of it – if there's a space, you have to use the quotes, otherwise you'll get an error. To see more info about mklink, simply type mklink into the command prompt and then press Enter. A help dialogue will appear.
That's it! Your symbolic link has now been created.
If you were doing this in order to run a PHP script locally, here's how… Let's assume that your filename was c:\Users\username\Documents\My Folder\hello-world.php for this example. All you have to do is open up your browser and type http://localhost/symfolder/hello-world.php into the navigation bar. XAMPP is looking for files in the c:\xampp\htdocs\ folder and you told your system that symfolder should actually point to My Folder, so the hello-world.php script is found.