Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Renaming Mapped Drive  (Read 906 times)

0 Members and 1 Guest are viewing this topic.

rjbinney

    Topic Starter


    Adviser
  • Disarmingly Good-looking
  • Experience: Familiar
  • OS: Other
Renaming Mapped Drive
« on: August 01, 2018, 05:52:51 PM »
I just mapped a corporate Sharepoint drive to My Computer.

It has a really long - like, really long - (I mean it, it's insanely long) name.

I'd like it to appear in my Explorer as something like, oh, I don't know, "Sharepoint".

If I F2 it - will it change its name ONLY as it appears on my machine, or will I start to do some damage?
Dan: You're gonna need to get someone to fix my computer.                     Kim: What's wrong with it?                     Dan: It's in several pieces on my floor.

DaveLembke



    Sage
  • Inventor of the Magna-Broom 3000 =)
  • Thanked: 625
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Renaming Mapped Drive
« Reply #1 on: August 01, 2018, 06:05:59 PM »
Pathing will remain same unless you edit map path. The name you have can be as simple as X:

rjbinney

    Topic Starter


    Adviser
  • Disarmingly Good-looking
  • Experience: Familiar
  • OS: Other
Re: Renaming Mapped Drive
« Reply #2 on: August 01, 2018, 06:13:36 PM »
Thanks. I was pretty sure but not willing to risk it!
Dan: You're gonna need to get someone to fix my computer.                     Kim: What's wrong with it?                     Dan: It's in several pieces on my floor.

techbeard



    Rookie

    Thanked: 5
    • Experience: Experienced
    • OS: Windows 10
    Re: Renaming Mapped Drive
    « Reply #3 on: August 07, 2018, 06:32:46 AM »
    If you are running Windows 10 1709 or above you can use the OneDrive client to connect to your SharePoint site which is a lot more stable to be honest.  You can set it to 'Files On Demand' so it only pulls down the files you are working on, I use this at work and it works great.

    rjbinney

      Topic Starter


      Adviser
    • Disarmingly Good-looking
    • Experience: Familiar
    • OS: Other
    Re: Renaming Mapped Drive
    « Reply #4 on: August 07, 2018, 09:38:53 AM »
    Interesting! But does it put the files on your HD, and count against your limit, or does it "stay" on Sharepoint? I lost the client project, so I'm not connected to their SP anymore, but I'll try that next time.
    Dan: You're gonna need to get someone to fix my computer.                     Kim: What's wrong with it?                     Dan: It's in several pieces on my floor.

    techbeard



      Rookie

      Thanked: 5
      • Experience: Experienced
      • OS: Windows 10
      Re: Renaming Mapped Drive
      « Reply #5 on: August 08, 2018, 01:16:52 AM »
      It downloads the file to use but keeps it sync'd to Office 365, I've created a batch file that on log off and if the file has been sync'd to set the file to online only so freeing up the space on your local machine.  I'm currently deploying this for 1500 users and so far it seems to work really well.  Please see below an example of the cmd's I'm using:-

      cd "c:\users\%username%\OneDrive - MyCompany"
      attrib  +U -P /s
      cd "c:\users\%username%\MyCompany"
      attrib  +U -P /s

      DaveLembke



        Sage
      • Inventor of the Magna-Broom 3000 =)
      • Thanked: 625
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: Renaming Mapped Drive
      « Reply #6 on: August 12, 2018, 05:56:29 AM »
      Didn't recognize those attrib switches. Looking on my Windows 10 system I don't see them listed. Is the U and P switches part of some addon to Windows?

      Even looking here.. I see a reference to P as SPARSE but no U switch. https://en.wikipedia.org/wiki/File_attribute

      Quote
      Microsoft Windows [Version 10.0.14393]
      (c) 2016 Microsoft Corporation. All rights reserved.

      C:\Users\Dave>attrib/?
      Displays or changes file attributes.

      ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I]
             [drive:][path][filename] [/S [/D] [/L]]

        +   Sets an attribute.
        -   Clears an attribute.
        R   Read-only file attribute.
        A   Archive file attribute.
        S   System file attribute.
        H   Hidden file attribute.
        I   Not content indexed file attribute.
        X   No scrub file attribute.
        V   Integrity attribute.
        [drive:][path][filename]
            Specifies a file or files for attrib to process.
        /S  Processes matching files in the current folder
            and all subfolders.
        /D  Processes folders as well.
        /L  Work on the attributes of the Symbolic Link versus
            the target of the Symbolic Link


      C:\Users\Dave>

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1102
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 8
      Re: Renaming Mapped Drive
      « Reply #7 on: August 12, 2018, 03:19:25 PM »
      Code: [Select]
      (Microsoft Windows [Version 10.0.17134.81])

      Displays or changes file attributes.

      ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [+O | -O] [+I | -I] [+X | -X] [+P | -P] [+U | -U]
             [drive:][path][filename] [/S [/D]] [/L]

        +   Sets an attribute.
        -   Clears an attribute.
        R   Read-only file attribute.
        A   Archive file attribute.
        S   System file attribute.
        H   Hidden file attribute.
        O   Offline attribute.
        I   Not content indexed file attribute.
        X   No scrub file attribute.
        V   Integrity attribute.
        P   Pinned attribute.
        U   Unpinned attribute.
        B   SMR Blob attribute.
        [drive:][path][filename]
            Specifies a file or files for attrib to process.
        /S  Processes matching files in the current folder
            and all subfolders.
        /D  Processes folders as well.
        /L  Work on the attributes of the Symbolic Link versus
            the target of the Symbolic Link


      They were added in Windows 10 version 10.0.16299.0. For some reason the two attributes are not well documented. (outside the WINNT.H header file, I can't find any MSDN documentation describing the attributes- perhaps it is in the onedrive docs or something). As per attrib /?, U is unpinned and P is pinned. I'd guess they are used for local cloud storage and, presumably "Pinned" means that the local file won't be deleted automatically, and "unpinned" means that local copies will not be stored.
      I was trying to dereference Null Pointers before it was cool.