Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: My file names and paths are not too long DOS TRUENCATE

18 Apr 2019   #1
DonM123

win7pro
 
 
My file names and paths are not too long DOS TRUENCATE

My files are obviously not to long to be on my source so why are they too long to be on my destination ?

I want to copy folders as they are and not modify them. These paths dont have any problem existing untel I try to copy and then guess what. they suddenly are too long or their paths are to long to copy.
does anyone understand why ?
Why is it they exist ok untel I go to copy them and why doesn't windows just truncate them as dos used to do ?
DOS used to do this thing where it put a ~1 ~2 on any thing that was too long.

I am copying files from windows 7 to a 4T external usb drive. Does Sync back free have a option to do something with these. I will try it next at least it will let me see what dum files wont copy.

I aim to fing out why these problems happen. I just don't get why I cant make a folder copy.

Thanks


My System SpecsSystem Spec
.
19 Apr 2019   #2
iko22

Windows 7 x64, Vista x64, 8.1 smartphone
 
 

Hi DonM123,

The path length is the total size (in characters) of filename plus drive letter plus directory path to the file. In Windows OS this is set to 260 characters. And this is the reason why you cannot copy or move your files with long pathnames.

However, the NTFS file system allows pathnames of 32,767 characters.

Windows 10 Users can Enable NTFS Long Paths to get around this problem.

Windows 7 Users have to either Rename the File, or use SUBST from a CMD Prompt, to shorten the Pathname.
My System SpecsSystem Spec
20 Apr 2019   #3
DonM123

win7pro
 
 

Why does windows allow the file name - path to exist if it can not exist. ? Windows knows its too long so why does windows wait until its time to back them up. Why doesn't windows just refuse to allow me to make the file path too long in the first place ?
DOS used to truncate files and make them shorter. Maybe if I used the Dos prompt I could find a switch for that.
My System SpecsSystem Spec
.

20 Apr 2019   #4
LMiller7

Windows 7 Pro 64 bit
 
 

Unicode applications can create and use paths up to 32,767 characters. This is useful to them. But for historic and practical considerations some parts of the system have more restrictive limits - 260 characters. Many applications, including new ones, were written for these limits. Windows explorer imposes the lower limit to protect these applications from long paths they are not prepared to handle. Bad things happen in applications presented with such long paths.
My System SpecsSystem Spec
20 Apr 2019   #5
Snick

Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
 
 

Try saving your files to a higher directory.
I have 500k+ of replacement files/folders & to save them with their original folder/filenames I saved them 1st level, i.e. C:, D:, etc.
Each subdirectory down restricts the size of your filenames

My example:
D:\SURT_Replacement_Files_&_Folders\amd64_acpi.inf_31bf3856ad364e35_6.1.7601.24056_none_810ed765fde3 f9be\acpi.sys
My System SpecsSystem Spec
4 Weeks Ago   #6
townsbg

Windows 7 pro 64-bit sp 1
 
 

Quote   Quote: Originally Posted by iko22 View Post
Hi DonM123,

The path length is the total size (in characters) of filename plus drive letter plus directory path to the file. In Windows OS this is set to 260 characters. And this is the reason why you cannot copy or move your files with long pathnames.
That is correct. As a simple example c:\folder\file.txt isn't 7 characters long, it is 18. A long line of folders and nested subfolders will take up that limitation. As a further example c:\folder1\folder2\folder3\folder4\folder5\folder6\file.txt is 59 characters. Removing some of those folders in the path will decrease the length.
My System SpecsSystem Spec
4 Weeks Ago   #7
Snick

Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
 
 

Quote   Quote: Originally Posted by iko22 View Post
The path length is the total size (in characters) of filename plus drive letter plus directory path to the file. In Windows OS this is set to 260 characters.
FYI: All names have to have a null terminator at the end. Normally only the computer sees this end marker but it counts as a character so there are really only 259 characters available.
My System SpecsSystem Spec
Reply

 My file names and paths are not too long DOS TRUENCATE




Thread Tools




Similar help and support threads
Thread Forum
File names to long for copy and paste in an External Hard Drive
Hello, Using PC Windows 7 Professional- I tried to copy and paste some files on my "C" drive and into an external WD Hard Drive... only to get a pop up stating that the file names are to long. And I should shorten them. Is there perhaps another way of doing this instead of going to over...
Hardware & Devices
Odd Files Left Over After SP1 - Can't Delete (Long Paths)
Hi, After installing installing SP1, a folder on my C drive is left over. I am unable to delete it since the path is too long, see attachment. Also, see attached txt file for directory and file info. I can't rename the files either, rename does not even show up on context menu and F2...
Installation & Setup
Long File Names Question ?
Hello, I generally have pretty long File names on files on my pc. Not sure what the limit in digits is, but generally no problem. But, if I try to download many of these with a particularly long file name to a USB memory stick, it comes back with an error MSG. That the name is too long. ...
General Discussion
Long file names in C:\windows containing WiseCustomCalla.dll??
I have noticed I have a number of long (looks like hex folders) file names contained in my C:\windows directory each containing a file WiseCustomCalla.dll. I was just curious as to what they were. I assume its some lazy install software leaving things behind. Can anyone confirm this and are they...
Software
How to search Explorer for file names that are too long
I'm trying to save a number of folders/files to my DVD that are rarely...if at all...used currently. When I try to burn them...I'm getting a failure saying a number of file names are too long ? But...it doesn't say which files in which folders...Is there a way to search for any/all files that...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:44.
Twitter Facebook