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
1
vote
3 answers

Problem in saving specific file name in python 3

After running the following program in jupyter lab the saved filename is ('test_C0_s50_d', 1, 't', 2, '18_l1w'), but I don't want parenthesis, comma, and spaces in the file name. I want something similar to test_C0_s50_d1t2_18_l1w in the filename so…
1
vote
0 answers

Overcome MAX_PATH filename length

I have read a lot of documentation on this subject, but I can't seem to figure it out. The cause is that I have to process file paths which may be longer than the MAX_PATH parameter, causing a lot of issues I have already replaced all my…
1
vote
2 answers

R - Select files by dates in filenames

I already had a similar question here: R - How to choose files by dates in file names? But I have to do a little change. I still have a list of filenames, similar to that: list = c("AT0ACH10000700100dymax.1-1-1993.31-12-2003", …
Essi
  • 761
  • 3
  • 12
  • 22
1
vote
2 answers

What is wrong with my list naming code?

I would like to change the file name from Sub****_Ses1 to HU_TT_12_****_UU; (**** numbered from 0001 to 1600) I did the below #!/bin/sh #Change file name Subj_id=/Users/dave/biomark/dat cd Subj_id for abcd in Sub****_Ses1; do mv…
tsumaranaina
  • 185
  • 1
  • 11
1
vote
2 answers

Is it possible to use special characters to represent a space in Windows?

We are using a proprietary application for inventory management and have discovered this application is unable to interpret spaces in file paths. For example: C:\Google Drive\Invoices Does not work, whereas C:\Google\Invoices does work. Is there a…
sammond
  • 113
  • 9
1
vote
7 answers

How to set long string(>260) in default FileName in SaveFileDialog?

I am using a SaveFileDialog and have to set long string(longFileName) in FileName. String longFileName is known at Runtime. If I set saveFileDialog.FileName = longFileName ; then I get System.IO.PathTooLongException. How can I do it?
z0kovsky
  • 63
  • 1
  • 10
1
vote
1 answer

opening a file that has spaces in its name

I have a problem opening files in C++ that has spaces in its name. For instance, to open the file read me.txt. This is the code I have so far involving one command that reads a file and outputs the word count to the console: string choice, word,…
user1696197
  • 39
  • 1
  • 2
1
vote
2 answers

CFSCRIPT - How to check the length of a filename before uploading

I ran into this problem when uploading a file with a super long name - my database field was only set to 50 characters. Since then, I have increased my database field length, but I'd like to have a way to check the length of the filename before…
Kirsten
  • 27
  • 1
  • 13
1
vote
0 answers

MacOsX HFS+ corrupts long utf-8 filenames by adding hash sign and number at the end

I'm user of MacOsX 10.6. Some time ago I found that I can't fetch git changes. I did some research and I think the problem lies in UTF-8 chars. I've tried to create new file $ touch "$180_utf-8_chars_file_name_with_spaces" $…
wwarlock
  • 443
  • 4
  • 14
0
votes
4 answers

C#: Using Directory.GetFiles to get files with fixed length

The directory 'C:\temp' has two files named 'GZ96A7005.tif' and 'GZ96A7005001.tif'. They have different length with the same extension. Now I run below code: string[] resultFileNames = Directory.GetFiles(@"C:\temp", "????????????.tif"); The…
Jring Qin
  • 347
  • 1
  • 4
  • 11
0
votes
2 answers

Execute file with long file path

I'm trying to write a program to wich pass a string that is a filename. I then want the program to start/open the file i pass as a parameter. I've done some research and i'm pretty sure i have to use something like this: Link But i've only found…
0
votes
0 answers

Git Error: The filename or extension is too long in Kate editor

I have recently switched to Kate due to Atom being discontinued. However I'm having trouble with the Git integration in Kate. I cannot seem to stage all files when I have a lot of files to stage. When I right click on modified and select "Stage All"…
nicole2292
  • 111
  • 1
  • 9
0
votes
0 answers

How to get the max path length in Node.js

In Node.js, how can I know what is the maximum possible path length in the current operating system? in I know that it's 260 characters in Windows, 4096 bytes in Linux, and 1024 bytes in macOS. But is there any way to get this value inside Node.js?…
0
votes
3 answers

How to get around a 'by design' issue with Windows dir?

dir /b produces a nice file-only list dir /x produces a detailed listing (date, time, size, longname, shortname) However, if you combine the two (i. e. dir /b /x) the /x switch gets ignored. this behavior as per this page is by design. So if you ask…
Majid Fouladpour
  • 29,356
  • 21
  • 76
  • 127
0
votes
0 answers

Long Path Problem using WScript.Arguments

In continuation of Call VBScript from Windows Explorer Context Menu, I managed to get a VBScript file running from SendTo in the Windows Explorer. I've changed my code to copy the file that invokes the script to my Temp folder. The new problem is…
Andrew
  • 221
  • 1
  • 10