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
-
@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.
-
@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.
-
@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.
-
@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!
-
@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?
-
Robocopy
-
@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.
-
@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
-
@Emad-R said in Veeeeeeerrrrrryyyyy long paths and filenames:
Robocopy
Geeez. I use Robocopy all the time, I can't believe I didn't think of that!
Thanks for the tickler!