How do I mount a network drive to a folder?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT
Music by Eric Matyas
https://www.soundimage.org
Track title: Magical Minnie Puzzles
--
Chapters
00:00 How Do I Mount A Network Drive To A Folder?
00:40 Accepted Answer Score 125
01:37 Answer 2 Score 12
01:47 Answer 3 Score 3
02:04 Answer 4 Score 8
02:35 Thank you
--
Full question
https://superuser.com/questions/244562/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #networkshares #sharedfolders
#avk47
ACCEPTED ANSWER
Score 125
In Windows Vista or Windows 7, you can create a "junction folder"/"Symbolic link" to redirect the contents of one to another.
Simply type:
mklink /d "c:\data\network docs" "\\server\shareddata\"
I have not tested it with a FQDN, but as far as I can tell, it should work. I have tested it with a network mapped drive, and this works perfectly... so at a last resort, you can map first, then do this.
The /d
creates a directory (c:\data\network docs
in this example) and it must not exist. It will be created by this command.
You must have admin privileges when you run CMD. You can do this under an admin account by pressing ctrl-shift-enter instead of enter when you run CMD.
The end result is also achievable in Windows XP, but it is not as easy. Guide here
ANSWER 2
Score 12
It runs ok for me:
net use \\\server\share\folder1\folder2
mklink /d "C:\Users\Admin\test\mi_enlace" \\\server\share\folder1\folder2
ANSWER 3
Score 8
For PowerShell:
(Remember to run as Administrator!!!)
New-Item -ItemType SymbolicLink -Path "C:\Somewhere At SMB Client" -Target "\\SMB-SERVER\Somewhere"
And if you want to delete it, simply delete it in File Explorer. DO NOT CALL rm
OR del
in PowerShell, as it would delete all the files. Instead, cmd /c "rmdir C:\Somewhere At SMB Client"
or (Get-Item C:\Somewhere At SMB Client).Delete()
would do the trick.
ANSWER 4
Score 3
This is an example fore the solution already provided by William Hilsum
open cmd
type: cd \folder-parent-of-the-folder-to-clone
type: deltree folder-to-clone (or you will get the following error: Cannot create a file when that file already exists)
type: mklink /d "folder-to-clone" "g:
\folder-to-clone"
The software will prompt: symbolic link created for folder-to-clone <<===>> g:\folder-to-clone