Folder sharing between two pcs on same network


  1. Posts : 495
    Windows 10 Home 64bit 22H2 OS 19045.3324
       #1

    Folder sharing between two pcs on same network


    Hi,
    This may be a stupid question to ask my apologise if so. I know how to share one folder between two computers what I do not know if there is a way to share more than one folder to the same mapped drive?

    For example share Documents and Pictures in the same mapped drive rather than on separate mapped drives.
      My Computers


  2. Posts : 4,187
    Windows 11 Pro, 22H2
       #2

    scopio,

    Not a stupid question at all.

    Let's assume that you have a structure like this:

    Code:
    D:\
       Folder1
          Folder2
       Folder3
          Folder4
    Put into words, you have the D: drive. That drive has 2 folders in it named Folder1 and Folder3. In turn, Folder1 has a folder inside of it named Folder2, and Folder3 contains a folder named Folder4.

    Let's assume that all of these folders contain a bunch of files as well, but for simplicity I am not showing them here.

    If you were to share Folder1, any user connecting to that share can see all files and folders WITHIN Folder1. In other words, they would see all files in Folder1, they would see Folder2, and also any additional files and folders within Folder2.

    Another way to say that is that the user would see all files and folders beneath Folder1. They would NOT see Folder3 becuae it is not beneath Folder1, it is at the same level and therefore needs to be shared seperately.

    However, notice what happens if you share D:\. Since both Folder1 and Folder2 are below that share level, both of these folders, as well as everything contained in both, would be visible to the user.

    So the short answer is that in order to see everything you want within a single share, everything you want access to must reside below the level of that share point.

    In the case of the Documents and Pictures libraries, both of these are by default located in C:\Users\Username (replace "Username" with your actual username). So if you share C:\Users\Username and map a drive to that share, Pictures and Documents will be accessible via that same mapped drive. Just be aware that everyting else contained in and below C:\Users\Username will also be visible. If you do not want everything else to be visible you have 2 options:

    1) Move the Documents and Pictures libraries to another location and share that location.

    2) Set NTFS permissions so that when a user connects to C:\Users\Username the only thing that user can see is Documents and Pictures.
      My Computers


  3. Posts : 4,187
    Windows 11 Pro, 22H2
       #3

    Thinking about this a little more...

    It might be possible to use a junction point as well. Let me look into that as it is not something I've used much and I'll let you know what I come up with.
      My Computers


  4. Posts : 495
    Windows 10 Home 64bit 22H2 OS 19045.3324
    Thread Starter
       #4

    Thanks @hsehestedt a very helpful suggestion.
      My Computers


  5. Posts : 4,187
    Windows 11 Pro, 22H2
       #5

    Tested and got it working. What you can do is create a Symbolic link.

    Here is an example:

    Let's say you share the "Documents" folder and you want "Pictures" to show up there as well. To accomplish this, open an elevated command prompt and run this command:

    Code:
    mklink /D c:\users\username\documents\Pictures c:\users\username\pictures
    NOTES: Substitute your actual user name for "username".
    "Pictures" will show up as a link within the Documents library. Double-click it and you will be within the Pictures library. You can use any name you want in place of Pictures (the one after documents\). The one at the end of the command cannot be changed since that is the actual path to the Pictures library.
      My Computers


  6. Posts : 16,948
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    You do realise that you do not need to map the drives to be able to address each folder?

    For example, I often copy between these folders
    E:\Documents\Stuff
    \\OtherComputer\ShareNameOfFolder

    and I can just use those addresses in the command window or in scripts
    XCopy E:\Documents\Stuff \\OtherComputer\ShareNameOfFolder

    or I can create a shortcut to the other one. It's Target field is
    \\OtherComputer\ShareNameOfFolder

    And, on the other computer, I use reciprocal addressing in its scripts.
    XCopy E:\Documents\OtherStuff \\FirstComputer\ShareNameOfFolder

    Denis
      My Computer


  7. Posts : 14,019
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #7

    I do it a bit differently, have 2 NAS drives connected to my Router via Ethernet cable, assure they are seen in the Network section of File Explorer then Map the Public folder on them. That folder can contain the same folders as able to create on the Windows drive in the computers. I can Map from any connected computer whether Wired or Wireless/Wi-Fi. Convenient is that no one computer has to be running for any other computer to use the folders. Same restrictions apply in that a folder cannot contain 2 or more subfolders of the exact same exact name and no folder can contain 2 or more files of the exact same name.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:46.
Find Us




Windows 10 Forums