Solved

Why does windows sbs 2011 allow me to save long file names but then not allow re-naming or deleting.

Posted on 2014-09-18
3
519 Views
Last Modified: 2016-02-25
In Brief:
How can we bypass the 255 maximum character length of a file in a folder tree with many nested folders?

The full story:
We are using Windows SBS server 2011 and have a department that uses very long file/folder addresses. They use many nested folders, finally finishing with a long file name (these are usually Architect construction drawings, notorious for having long technical names).
We are having many difficulties with these files. I know there is a 255 character limit to the 'Total' file name which would include the drive letter, spaces and any other characters in the file address. I cannot rename, delete, move or copy these files (obviously due to the maximum 255 limit). What is really annoying is that Windows allows the creation of the file, but then does not allow any other file operation. It also allows the opening of the files!
The only way around the problem has been to shorten the name of some of the nested folders, which is ok for the odd file, but this department has hundreds of folders and thousands of files.
Attention has been focused on this problem because of a recent CryptoLocker infection on the file server and the need to restore previous versions/backups.
We use Sophos anti-virus and their tech support advised us that using ‘previous versions’ to restore was quicker and simpler than restoring from Backup. Using the backup would have entailed the deletion of each folder tree first and then the copying across from our NAS storage the replacement folder tree.
All seemed to go well and we reverted back to files and folders from 4 hours before the infection.
Or so it seemed!
Now (ten days later with no previous version or backup to rely on from the infection date) we find many many folders are empty. There was obviously a problem restoring the file name that exceeded the 255 character limit.
We are resigned to the fact that these files are lost. However moving forwards is there a way of getting around the address length issue without forcing the department to reducing the name length of each of the folder trees (they create many of these extended folder trees each week, usually from disks containing the folders and files from clients).
0
Comment
Question by:NELMO
3 Comments
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 250 total points
ID: 40330136
use the format  "\\?\c:\longfilepath or use the subst  dos command line tool subst M: drive:path
0
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 250 total points
ID: 40330258
Or a Junction/link/network drive to change the path to something shorter.

Example:  D:\User Shared Folders\Mitchell Johnson, Esquire\Vitally Important Documents\2014
Share "2014" as "MJ-VID-2014" and map a network drive to \\server\MJ-VID-2014 and now you've shortened the path for all files in that folder to X:\ (where x is the network drive letter you selected), saving (in this example) 79 characters.
0
 

Author Closing Comment

by:NELMO
ID: 40399007
Apologies for my lateness.

I hope you are both ok with the share. I have used both of your suggestions successfully, as well as getting the two or three users that this problem affects to look at their logic in how they create folders and save files.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now