Copy long file names in long paths get canceled without any error


William654

Well-known member
Member
VIP
Local time
4:07 PM
Posts
624
OS
Windows 11
Hi

I am trying to copy many files from Windows 11 to my android phone but I found while using explorer the copy get canceled at any time. After testing I found that long file names and long paths are the problem. I tried to use Total Commander but same problem happean. Even worse I have so many files appear like that in Windows:

Ø¨Ø§Ø ÙبÙ.pdf

Also these files escaped from copy. Any solution ?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    5900x
    Motherboard
    MAG X570S TOMAHAWK MAX WIFI
    Memory
    32 GB G.Skill
    Graphics Card(s)
    RX 6800 XT
    Sound Card
    Creative Sound Blaster Z
    Monitor(s) Displays
    BENQ and AOC QHD 120Hz
    Screen Resolution
    QHD
    Hard Drives
    2TB Intel 660p and 2TB Sabrent Rokect 4 plus nvme, 4TB HDD HGST
    PSU
    Corsair RM750
    Case
    Bloody rage
    Cooling
    Water cooling gamdias 240
    Keyboard
    razer ornata
    Mouse
    razer da v2
    Browser
    FF and Chrome
    Antivirus
    Malwarebytes
Not all devices, systems can use long file names, can't get around that except by shortening the file name.

As for copying to the phone I'd try creating a new folder on the computer, call it Copy to Phone, or something else, then Copy the desired files into that new folder, will shorten the path for the purpose.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
A simple solution would be to first copy the files (or the last subfolders) to a folder, that does not have a long path. Something as D:\TempDump

If that is not possible, you have copied (or created) the files by some other program and you should use that program to copy the files to the TempDump folder first.
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 22631.4751
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-secure via Internet provider
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
Thanks . What I should do with long file names and files that has strange characters ? they are so many like 30GB
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    5900x
    Motherboard
    MAG X570S TOMAHAWK MAX WIFI
    Memory
    32 GB G.Skill
    Graphics Card(s)
    RX 6800 XT
    Sound Card
    Creative Sound Blaster Z
    Monitor(s) Displays
    BENQ and AOC QHD 120Hz
    Screen Resolution
    QHD
    Hard Drives
    2TB Intel 660p and 2TB Sabrent Rokect 4 plus nvme, 4TB HDD HGST
    PSU
    Corsair RM750
    Case
    Bloody rage
    Cooling
    Water cooling gamdias 240
    Keyboard
    razer ornata
    Mouse
    razer da v2
    Browser
    FF and Chrome
    Antivirus
    Malwarebytes
Thanks . What I should do with long file names and files that has strange characters ? they are so many like 30GB
Are the strange characters from some other language or maybe the text got corrupted? Both circumstances can be changed the same way, change the file name but I'd certainly do a deep scan with antivirus/antimalware to reduce corruption especially if the file source is from outside your system. Some times a user has to open a file to determine what a correct/usable file name would be but that also could activate a hidden infection so there's always a risk involved.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Maybe you could use one of the (many, often free) bulk renaming utilities.
I am using Flexible Renamer 8.4, but I don't know how it handles strange characters.
It has quite a complicated method of coding, but for my (simple) purposes it does the job.
But there are other programs that you could use.
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 22631.4751
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-secure via Internet provider
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
I found that among thousands of files there is one or two file with too long file name so copy get canceled silently without display any error :mad:
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    5900x
    Motherboard
    MAG X570S TOMAHAWK MAX WIFI
    Memory
    32 GB G.Skill
    Graphics Card(s)
    RX 6800 XT
    Sound Card
    Creative Sound Blaster Z
    Monitor(s) Displays
    BENQ and AOC QHD 120Hz
    Screen Resolution
    QHD
    Hard Drives
    2TB Intel 660p and 2TB Sabrent Rokect 4 plus nvme, 4TB HDD HGST
    PSU
    Corsair RM750
    Case
    Bloody rage
    Cooling
    Water cooling gamdias 240
    Keyboard
    razer ornata
    Mouse
    razer da v2
    Browser
    FF and Chrome
    Antivirus
    Malwarebytes
If I have a need for checking file names in File Explorer I will move the mouse pointer to the vertical bar between Name and the adjacent column and click to drag/slide to the right to show the full name. Also, double-click expands to the full width of that column, show the full name. Another thing if looking for different arrangements is to double-click the column heading to change that arrangement, just like working in a spreadsheet.

One can use Ctrl+A to select all the files, click the first of a list, hold down the Shift key and click the last desired for a group or hold down the Ctrl key to click/select individual files in a random order.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Yes I am doing manual check
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    5900x
    Motherboard
    MAG X570S TOMAHAWK MAX WIFI
    Memory
    32 GB G.Skill
    Graphics Card(s)
    RX 6800 XT
    Sound Card
    Creative Sound Blaster Z
    Monitor(s) Displays
    BENQ and AOC QHD 120Hz
    Screen Resolution
    QHD
    Hard Drives
    2TB Intel 660p and 2TB Sabrent Rokect 4 plus nvme, 4TB HDD HGST
    PSU
    Corsair RM750
    Case
    Bloody rage
    Cooling
    Water cooling gamdias 240
    Keyboard
    razer ornata
    Mouse
    razer da v2
    Browser
    FF and Chrome
    Antivirus
    Malwarebytes
In File Explorer you can see the full path of any file in a folder like this:
- Right-click the bar where is standing Title | Type | (etc.)
- Click "More"
- Select Path
- Click "OK"
The column will show all pathes of the files in that folder and it will be easy to scroll down to find long pathes.

Maybe you need to temporarly unselect all rows that are not important and only leave Name and Path selected.
Then you really can see the full path, even if that path is very long. That is: if you make the window as large as possible and the column of the names smaller.
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro 23H2 22631.4751
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-secure via Internet provider
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
- Click "More"
I can not find more but I will try to use search or tool called everything to find long names
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    5900x
    Motherboard
    MAG X570S TOMAHAWK MAX WIFI
    Memory
    32 GB G.Skill
    Graphics Card(s)
    RX 6800 XT
    Sound Card
    Creative Sound Blaster Z
    Monitor(s) Displays
    BENQ and AOC QHD 120Hz
    Screen Resolution
    QHD
    Hard Drives
    2TB Intel 660p and 2TB Sabrent Rokect 4 plus nvme, 4TB HDD HGST
    PSU
    Corsair RM750
    Case
    Bloody rage
    Cooling
    Water cooling gamdias 240
    Keyboard
    razer ornata
    Mouse
    razer da v2
    Browser
    FF and Chrome
    Antivirus
    Malwarebytes
Is there a way in explorer to see each folder total size and files count number istead of using properties ?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    5900x
    Motherboard
    MAG X570S TOMAHAWK MAX WIFI
    Memory
    32 GB G.Skill
    Graphics Card(s)
    RX 6800 XT
    Sound Card
    Creative Sound Blaster Z
    Monitor(s) Displays
    BENQ and AOC QHD 120Hz
    Screen Resolution
    QHD
    Hard Drives
    2TB Intel 660p and 2TB Sabrent Rokect 4 plus nvme, 4TB HDD HGST
    PSU
    Corsair RM750
    Case
    Bloody rage
    Cooling
    Water cooling gamdias 240
    Keyboard
    razer ornata
    Mouse
    razer da v2
    Browser
    FF and Chrome
    Antivirus
    Malwarebytes
You could PUSHD your way up the tree in CMD prompt. One way to deal with long paths.
 

My Computer

System One

  • OS
    PE
I can not find more but I will try to use search or tool called everything to find long names
I wrote a little manual. Because my system is in Dutch language, the columns have different names.
I tried as good as possible to translate them without knowing the exact English names.
Please see the attached pdf Manual-to-show-full-path-in-File-explorer.pdf
 

Attachments

My Computer

System One

  • OS
    Windows 11 Pro 23H2 22631.4751
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-secure via Internet provider
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
For seeing folder sizes easily and paths etc try Treesize or WizTree or similar, they are free for personal use and usually have a portable version (so no install needed), when run with admin elevation they can show all hidden files and folders as well. Very useful for seeing the 'true' contents of a disk.
 

My Computer

System One

  • OS
    Windows 11 Pro 22H2, build: 22621.521
    Computer type
    PC/Desktop
    Manufacturer/Model
    Scan 3XS Custom 1700
    CPU
    Intel i7-12700K 3.6GHz Base (5.0GHz Turbo)
    Motherboard
    Asus ProArt Creator B660 D4
    Memory
    64GB DDR 3600Mhz
    Graphics Card(s)
    Asus Tuff RTX 3080 10GB OC
    Sound Card
    Onboard Realtek
    Monitor(s) Displays
    Gigabyte G32QC 32inch 16:9 curved @2560 x 1440p 165Hz Freesync Premium Pro/ Dell SE2422H 24inch 16:9 1920 x 1080p 75Hz Freesync
    Screen Resolution
    2560 x 1440p & 1920 x 1080p
    Hard Drives
    WD SN570 1TB NVME (Boot), Samsung 870QVO 1TB (SSD), SanDisk 3D Ultra 500Gb (SSD) x2, Seagate 3Tb Expansion Desk (Ext HDD), 2x Toshiba 1Tb P300 (Ext HDD)
    PSU
    Corsair RM1000X Modular
    Case
    Corsair 4000D Airflow Desktop
    Cooling
    Corsair Hydro H150i RGB Pro XT 360mm Liquid Cooler, 3 x 120mm fans, 1x Exhaust
    Keyboard
    Microsoft Ergonomic
    Mouse
    Logitech G402
    Internet Speed
    800Mbs
    Browser
    Edge Chromium
    Antivirus
    Defender, Malwarebytes
It is crazy because I remember I copied these files in device with android 7 and I had no problem but with android 13 I can not
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    5900x
    Motherboard
    MAG X570S TOMAHAWK MAX WIFI
    Memory
    32 GB G.Skill
    Graphics Card(s)
    RX 6800 XT
    Sound Card
    Creative Sound Blaster Z
    Monitor(s) Displays
    BENQ and AOC QHD 120Hz
    Screen Resolution
    QHD
    Hard Drives
    2TB Intel 660p and 2TB Sabrent Rokect 4 plus nvme, 4TB HDD HGST
    PSU
    Corsair RM750
    Case
    Bloody rage
    Cooling
    Water cooling gamdias 240
    Keyboard
    razer ornata
    Mouse
    razer da v2
    Browser
    FF and Chrome
    Antivirus
    Malwarebytes
Windows uses the old API if you use things like windows explorer to copy long file names - so the limit of 266 chars still remaims.

The reason you see "strange characters" is that longer file names are converted to the old DOS 8.3 format so you'll see some weird combo of xxxxxxxx.yyy where xxxxxxxx can be almost anything. So even if the original files are OK (name / path / file length > 266 chars) - depending on how they were created and transferred to windows --once you use windows explorer the api will hose them up.

cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
I dont know what is the problem for display error message while copying
 
Last edited:

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    5900x
    Motherboard
    MAG X570S TOMAHAWK MAX WIFI
    Memory
    32 GB G.Skill
    Graphics Card(s)
    RX 6800 XT
    Sound Card
    Creative Sound Blaster Z
    Monitor(s) Displays
    BENQ and AOC QHD 120Hz
    Screen Resolution
    QHD
    Hard Drives
    2TB Intel 660p and 2TB Sabrent Rokect 4 plus nvme, 4TB HDD HGST
    PSU
    Corsair RM750
    Case
    Bloody rage
    Cooling
    Water cooling gamdias 240
    Keyboard
    razer ornata
    Mouse
    razer da v2
    Browser
    FF and Chrome
    Antivirus
    Malwarebytes
I found a useful file manager helped me overcome files problem it is directory opus and it is better than total commander
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    CPU
    5900x
    Motherboard
    MAG X570S TOMAHAWK MAX WIFI
    Memory
    32 GB G.Skill
    Graphics Card(s)
    RX 6800 XT
    Sound Card
    Creative Sound Blaster Z
    Monitor(s) Displays
    BENQ and AOC QHD 120Hz
    Screen Resolution
    QHD
    Hard Drives
    2TB Intel 660p and 2TB Sabrent Rokect 4 plus nvme, 4TB HDD HGST
    PSU
    Corsair RM750
    Case
    Bloody rage
    Cooling
    Water cooling gamdias 240
    Keyboard
    razer ornata
    Mouse
    razer da v2
    Browser
    FF and Chrome
    Antivirus
    Malwarebytes
That's a shareware program. After 60 days of evaluation you'll have to pay to stay using it.
If you like the program very much you could do so of course.
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 22631.4751
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-secure via Internet provider
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11

Latest Support Threads

Back
Top Bottom