ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Veeeeeeerrrrrryyyyy long paths and filenames

    IT Discussion
    8
    15
    480
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gjacobseG
      gjacobse
      last edited by

      One of the biggest tools you can use is User Education. Long file names will make backups fail. If you are in the legal realm, the users must be educated that they are causing issues that will make your business fail, clients lose the case, and on some level - worse.

      J 1 Reply Last reply Reply Quote 1
      • siringoS
        siringo
        last edited by

        I come cross this from time to time, luckily the document and folder doesn't need to be kept.

        I rename the document to '1' and the folder '1', this obviously shortens things greatly.

        Maybe you could come up with a clever script that just renames things automatically for you?

        Deltree used to work for this.

        J 1 Reply Last reply Reply Quote 0
        • black3dynamiteB
          black3dynamite
          last edited by

          Besides educating your users, you might be able set restrictions for file and folder naming length using File Server Resource Manager.

          1 Reply Last reply Reply Quote 0
          • iroalI
            iroal
            last edited by

            Check this link:

            https://superuser.com/questions/1119883/windows-10-enable-ntfs-long-paths-policy-option-missing

            1 Reply Last reply Reply Quote 0
            • notverypunnyN
              notverypunny
              last edited by

              Quick fix is to remount the folder to an unused drive letter closer to the target.... so c:\stupid\long\folder\path\file1.txt becomes x:\file1.txt

              subst works great for this

              https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/subst

              DustinB3403D J 2 Replies Last reply Reply Quote 1
              • DustinB3403D
                DustinB3403 @notverypunny
                last edited by

                @notverypunny said in Veeeeeeerrrrrryyyyy long paths and filenames:

                Quick fix is to remount the folder to an unused drive letter closer to the target.... so c:\stupid\long\folder\path\file1.txt becomes x:\file1.txt

                subst works great for this

                https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/subst

                This, while it works to address the symptom, doesn't fix the plague.

                J 1 Reply Last reply Reply Quote 1
                • J
                  JasGot @gjacobse
                  last edited by

                  @gjacobse said in Veeeeeeerrrrrryyyyy long paths and filenames:

                  One of the biggest tools you can use is User Education. Long file names will make backups fail. If you are in the legal realm, the users must be educated that they are causing issues that will make your business fail, clients lose the case, and on some level - worse.

                  Sadly, the data come from entire disk images of all users at the opposing counsel's client; and entire exchange server dumps. I understand the logic behind education, we preach it all the time to our customers. But we never know where the data is coming from until were are headed for trial.

                  1 Reply Last reply Reply Quote 0
                  • J
                    JasGot @notverypunny
                    last edited by

                    @notverypunny said in Veeeeeeerrrrrryyyyy long paths and filenames:

                    Quick fix is to remount the folder to an unused drive letter closer to the target.... so c:\stupid\long\folder\path\file1.txt becomes x:\file1.txt

                    subst works great for this

                    https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/subst

                    I love subst. We use it regularly for things most people never think of. The issue is subsequent access. I suppose I could create and drop a script into each evidence folder that creates the substitutions whenever they are needed.

                    I was hoping for a utility that would work much like bitly.com or goo.gl or tiny.cc

                    In my mind I see it creating symbolic links to the long paths, and then hiding the original paths until the import is finished. Then unlink and unhide.

                    Simplified explanation, but no so simple to implement. 🙂

                    1 Reply Last reply Reply Quote 0
                    • J
                      JasGot @DustinB3403
                      last edited by

                      @DustinB3403 said in Veeeeeeerrrrrryyyyy long paths and filenames:

                      @notverypunny said in Veeeeeeerrrrrryyyyy long paths and filenames:

                      Quick fix is to remount the folder to an unused drive letter closer to the target.... so c:\stupid\long\folder\path\file1.txt becomes x:\file1.txt

                      subst works great for this

                      https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/subst

                      This, while it works to address the symptom, doesn't fix the plague.

                      An a plague it is!

                      notverypunnyN 1 Reply Last reply Reply Quote 0
                      • J
                        JasGot @siringo
                        last edited by

                        @siringo said in Veeeeeeerrrrrryyyyy long paths and filenames:

                        I come cross this from time to time, luckily the document and folder doesn't need to be kept.

                        I rename the document to '1' and the folder '1', this obviously shortens things greatly.

                        Maybe you could come up with a clever script that just renames things automatically for you?

                        Deltree used to work for this.

                        I've done this manually too, the folder names are "sometimes" important. I'll give this some thought as a script and see what I can come up with.

                        How did you do it with DelTree?

                        siringoS 1 Reply Last reply Reply Quote 0
                        • Emad RE
                          Emad R @JasGot
                          last edited by

                          @JasGot

                          Robocopy

                          J 1 Reply Last reply Reply Quote 0
                          • siringoS
                            siringo @JasGot
                            last edited by

                            @JasGot said in Veeeeeeerrrrrryyyyy long paths and filenames:

                            @siringo said in Veeeeeeerrrrrryyyyy long paths and filenames:

                            I come cross this from time to time, luckily the document and folder doesn't need to be kept.

                            I rename the document to '1' and the folder '1', this obviously shortens things greatly.

                            Maybe you could come up with a clever script that just renames things automatically for you?

                            Deltree used to work for this.

                            I've done this manually too, the folder names are "sometimes" important. I'll give this some thought as a script and see what I can come up with.

                            How did you do it with DelTree?

                            My long term memory must have kicked in, deltree hasn't been around for a while.

                            Maybe try rd or rmdir.

                            1 Reply Last reply Reply Quote 0
                            • notverypunnyN
                              notverypunny @JasGot
                              last edited by

                              @JasGot said in Veeeeeeerrrrrryyyyy long paths and filenames:

                              @DustinB3403 said in Veeeeeeerrrrrryyyyy long paths and filenames:

                              @notverypunny said in Veeeeeeerrrrrryyyyy long paths and filenames:

                              Quick fix is to remount the folder to an unused drive letter closer to the target.... so c:\stupid\long\folder\path\file1.txt becomes x:\file1.txt

                              subst works great for this

                              https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/subst

                              This, while it works to address the symptom, doesn't fix the plague.

                              An a plague it is!

                              You can't fix stupid.... you can only try to maintain your sanity

                              1 Reply Last reply Reply Quote 0
                              • J
                                JasGot @Emad R
                                last edited by

                                @Emad-R said in Veeeeeeerrrrrryyyyy long paths and filenames:

                                @JasGot

                                Robocopy

                                Geeez. I use Robocopy all the time, I can't believe I didn't think of that!

                                Thanks for the tickler!

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post