My file names and paths are not too long DOS TRUENCATE

Status
Not open for further replies.

DonM123

New member
Member
VIP
Local time
10:55 PM
Messages
140
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 Computer My Computer

At a glance

win7proi716GTX 980 TI
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Gigibyte Custom build
OS
win7pro
CPU
i7
Memory
16
Graphics Card(s)
GTX 980 TI
Hard Drives
ssd 4t 750gig
Antivirus
norton pain
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 Computer My Computer

At a glance

Windows 7 x64, Vista x64, 8.1 smartphoneIntel E8400 65W 64-bitDDR2 2 x 2GB, 1GB x 2XFX Radeon HD5750
Computer type
PC/Desktop
OS
Windows 7 x64, Vista x64, 8.1 smartphone
CPU
Intel E8400 65W 64-bit
Motherboard
Gigabyte EP45-UD3LR
Memory
DDR2 2 x 2GB, 1GB x 2
Graphics Card(s)
XFX Radeon HD5750
Sound Card
AMD High Definition Audio; Realtek High Definition Audio
Monitor(s) Displays
iiyama prolite X2377HDS
Screen Resolution
1920 x 1080
Hard Drives
500GB 7200 rpm Seagate ST3500413AS 16MB, 500GB 5400 rpm Toshiba MQ02ABF050H 32MB, 200GB 7200 rpm Seagate ST3200820AS 8MB, 2TB 7200 rpm Western Digital WD20EZRX 64MB
PSU
Enermax Liberty Modular
Case
Antec P193 Midi Tower
Keyboard
Mionix ZIBAL 60
Mouse
Razer USB 2.0 Diamondback Mouse or Huion Graphics Tablet
Browser
Internet Explorer, Lunascape, Firefox, Opera, Avast Safezone
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 Computer My Computer

At a glance

win7proi716GTX 980 TI
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Gigibyte Custom build
OS
win7pro
CPU
i7
Memory
16
Graphics Card(s)
GTX 980 TI
Hard Drives
ssd 4t 750gig
Antivirus
norton pain
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 Computer My Computer

At a glance

Windows 7 Pro 64 bitXeon W35208 GBNvidia Geforce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
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_810ed765fde3f9be\acpi.sys
 

My Computer My Computer

At a glance

Win 10 x64, Linux Lite, Win 7 x64, BlackArch,...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN
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 Computers My Computers

  • At a glance

    Windows 7 pro/Windows 10 ProIntel i7 860 Quad core 2.8 ghz8 gbATI Radeon HD 5770 1 gb ram
    Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    HP Pavillion Elite HPE-250f
    OS
    Windows 7 pro/Windows 10 Pro
    CPU
    Intel i7 860 Quad core 2.8 ghz
    Memory
    8 gb
    Graphics Card(s)
    ATI Radeon HD 5770 1 gb ram
    Monitor(s) Displays
    Alienware 25 AW2521HF & Viewsonic
    Screen Resolution
    1920 x1080 & 1680x1050
    Hard Drives
    WD blue 1 tb & 500 gb.
    Browser
    FF of course.
    Other Info
    https://www.bestbuy.com/site/hp-pavilion-elite-desktop-intel-core-i7-processor-8gb-memory-1tb-hard-drive/9921493.p?skuId=9921493
  • At a glance

    Windows 2012 R2 Data center/Linux Minti3 9100 3.6GHz, 8M cache, 4C/4T8GB 2666MT/s DDR4 ECC UDIMM
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell Poweredge T140
    OS
    Windows 2012 R2 Data center/Linux Mint
    CPU
    i3 9100 3.6GHz, 8M cache, 4C/4T
    Memory
    8GB 2666MT/s DDR4 ECC UDIMM
    Monitor(s) Displays
    Viewsonic
    Screen Resolution
    1680x1050
    Hard Drives
    1 TB & 750 GB
    Other Info
    https://www.dell.com/en-us/work/shop/productdetailstxn/poweredge-t140?~ck=bt
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 Computer My Computer

At a glance

Win 10 x64, Linux Lite, Win 7 x64, BlackArch,...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN
Status
Not open for further replies.
Back
Top