Questions tagged [long-filenames]

Long filenames can present compatibility or interoperability problems for operating systems and software with character length restrictions.

Overview

Long filenames can present compatibility or interoperability problems for operating systems and software with character length restrictions.

See also

68 questions
5
votes
0 answers

_wsplitpath_s() alternative to use with long paths

I'm parsing paths by using the library function _wsplitpath_s() to use with Win32 API functions. According to this MSDN document, long paths (longer than MAX_PATH characters) must be perpended with with the prefix \\?\. However, when I perpend it to…
hkBattousai
  • 10,583
  • 18
  • 76
  • 124
5
votes
1 answer

Expanding short names for non 8dot3 directory paths to long name

In R on Windows, tempdir() returns a path that contains short names for non 8dot3 directory names. How do I expand those to long names? An answer that uses pure R code is favorable, but one that uses well-known shell commands used via system() is…
Jeff
  • 1,426
  • 8
  • 19
3
votes
0 answers

WIX MSI: copying long file names or files which has long file path

I created MSI using WIX. It contains few files which has long path (more than 248 characters) and file name (more than 260 characters, including file path + file name). while installing this MSI package into my computer it is throwing error "Error…
mgr
  • 641
  • 1
  • 8
  • 23
3
votes
3 answers

Convert long filename to short filename (8.3)

I want to convert long filenames/path to short filenames (8.3). I'm developing a script that calls a command line tool that only accepts short filenames. So i need to convert C:\Ruby193\bin\test\New Text Document.txt…
user1251007
  • 15,891
  • 14
  • 50
  • 76
2
votes
1 answer

quarkus native image plugin (graalvm 20) crashes on windows 10 home (error 206): cannot run program, filename or extension too long

I can not successfully run "mvn package -Pnative" for a quarkus application on a windows 10 home machine. It fails with error "filename is to long". Any ideas anybody? I already acitvated long path names on windows regedit and gpedit ... The command…
user13511470
2
votes
1 answer

creating file in assembly 16 bit with long file name

a have made a proc which create a file for me (in assembly 16 bit in dos box) and it work just fine with short file name(see below). however, when the name is above 8 chars all the others are deleted. for example for the path:…
2
votes
1 answer

Windows: creating a shortcut to a non-exist drive doesn't allow long folder and filenames

I'm trying to use PowerShell to create a shortcut that targets a file on a mapped drive. This script will be running before the drive is actually mapped, though. Here's the code: $Shortcut = (New-Object -ComObject…
Frank
  • 21
  • 3
2
votes
1 answer

fopen error due to long path gives no such file exist

I want to know whether fopen failed in C due to long path or file not exist #include #include extern int errno ; int main(){ FILE *p; int…
Karthik K M
  • 619
  • 2
  • 9
  • 24
2
votes
2 answers

Windows 10 Maximum Path Length Limitation

I am, like some before me, confused by the Maximum Path Length Limitation. I successfully transferred a tree of files to a NAS using robocopy and a new Windows 10 machine. On the source machine all files were in 260 characters limit. They were…
dm76752
  • 93
  • 7
2
votes
2 answers

How to open files in JAR file with filename length greater than 255?

I have a JAR file with following structure: com -- pack1 -- A.class -- pack2 --…
arminb
  • 2,036
  • 3
  • 24
  • 43
2
votes
1 answer

Maximum Length For Filename

What is the maximum length allowed for filenames? And is the max different for different operating system? I'm asking because I have trouble creating or deleting files, and I suspect the error was because of long file names. 1. Creating: I wrote a…
sora0419
  • 2,308
  • 9
  • 39
  • 58
2
votes
2 answers

Perforce long file names using UNC names

Has anyone got perforce windows client working with long file names? Following this article on Perforce KB I tried to use \?\C:\Temp as workspace root, but P4V gives error of the following form: can't create directory for \\?\C:\temp\path...…
Miserable Variable
  • 28,432
  • 15
  • 72
  • 133
1
vote
2 answers

Even with LongPathsEnabled set to 1, Windows 10 Explorer doesn't seem to support long paths

In Windows 10 21H2 have LongPathsEnabled set to 1 in the registry, via group policy, but even though that's supposed to allow paths up to 32K characters, Windows Explorer is unable to create them—even though PowerShell can, but if you create deeper…
Ralph Smorra
  • 31
  • 1
  • 4
1
vote
0 answers

Is a POSIX_NAME_MAX value of only 14 as expected in Mac OS?

I'm working on a filename convention, and I'm using the POSIX Portable File Name Character Set (e.g. here) as a starting point. I thought I'd run a quick check using 'pathchk -p' (I'm on macOS 11.3, Big Sur) to see how things stand to begin with and…
tkp
  • 197
  • 7
1
vote
0 answers

Oracle HTTP Server "File name too long" ERROR

I am using Oracle HTTP Server. I would like to ask about my server log file. I saw an ERROR in my log file example like this: [OHS] [ERROR:32] [AH00127] [core] [client_id: 10.10.10.10] [host_id: example] [host_addr: 10.10.10.10] [pid: 111111] [tid:…