As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [filenames]

A filename (also written as two words, file name) is a name used to uniquely identify a computer file stored in a file system. Filenames are a human-friendly label for the references or pointers that operating systems use to identify files within a file system.

Filter by
Sorted by
Tagged with
0 votes
3 answers
68 views

How to check in Bash if there is a file with an asterisk it its name

I've got an error in a Bash script that creates files with an asterisk ("*") in the name. I do not want this, so I'm trying to test at various points in the script if such a thing exists ...
4Dummies's user avatar
  • 173
2 votes
0 answers
52 views

Microsoft Word Print/Save as PDF now “Untitled” instead of DOCX filename

Just recently my copy of Microsoft Word for Mac Version 16.72 (2021) has stopped titling filenames of PDFs when exported from the Print dialog. Steps: Open or create a Word DOCX file. Hit commandP, ...
2540625's user avatar
  • 353
1 vote
0 answers
25 views

How do I print from an application to a line printer in Linux Mint?

I'm using Linux Mint and I have a BASIC interpreter that normally sends the output of LPRINT, LLIST, etc. to /dev/null. I want to send it to the line printer (network connected). BASIC has a command ...
TomL12953's user avatar
0 votes
0 answers
35 views

How to Break lines of the displayed file names under extra large icons' miniatures at specified points in Windows Explorer?

How to Break lines of the displayed file names under extra large icons' miniatures at specified points in Windows Explorer? I want to optimize this file name display mode for the Extra large icons ...
StackProber's user avatar
0 votes
2 answers
116 views

Remove all characters in multiple filenames, that follow a specific character, in Mac OS

Trying to find a script, or app, that batch removes filename clutter following proper formatting. For example this Exercise [2009] previous version.png into this Exercise [2009].png I need the final ...
Major Van Bloodnok's user avatar
1 vote
1 answer
39 views

How do I correctly execute 'vim $(grep -rli pattern | sed 's/\(.*\)/"&"/')' in bash?

I am trying to edit files that contain text matching a regular expression with vim and use the following command in bash to do that: vim $(grep -rli pattern | sed 's/\(.*\)/"&"/') I ...
René Nyffenegger's user avatar
0 votes
0 answers
13 views

how to limit the text length of folder/files names in thumbnail view

In thumbnails view, the folders/files' name text wraps to a maximum of 4 lines. Is there a way to limit it to only one line?
Kareem's user avatar
  • 55
0 votes
1 answer
198 views

How to remove all files from GIT repo history with path having colon : in filename?

I have ISCSI node filenames with colons stored in GIT repository on Debian 10 Linux. Example: 'iscsi/nodes/iqn.2000-01.com.synology:NAS01-DS916.nas/ff11::111:11ff:ff1f:1ff1,3260,1/default' 'iscsi/...
klor's user avatar
  • 159
0 votes
0 answers
103 views

Is double dash (--) safe in cross-platform filenames for Linux, Windows and macOS (if it's not at the beginning or end of a filename)

I am going to use a double dash in cross-platform filenames (for Linux, Windows and macOS). Is this safe? For example: project-abc--extension-xyz--2022-12-09 Thanks for your help.
ccnc3000's user avatar
0 votes
0 answers
73 views

Extract files in order by numbers at end of filename (windows)

I want to use a Windows .bat file to extract a number of files in a folder. I have files with numbers at the end of filename, just before the extension, and I need to extract them in order of these ...
Antóin's user avatar
0 votes
0 answers
85 views

How to remove unknown character from a filename in Linux

I am using Nextcloud to sync files from computer A (unknown computer - i'm guessing Mac) to computer B (Rocky Linux server). Some of the invoices that come from computer A have special characters in ...
THEoneANDonly's user avatar
1 vote
1 answer
99 views

zmv to rename Unicode characters (e.g. u0308 'COMBINING DIAERESIS') on Mac/zsh-shell

While cleaning a file server I found unwanted or non-ASCII characters in many filenames. To rename unwanted filenames, I normally use the comfortable zmv command in a zsh shell on an OSX machine. To ...
mfuerli's user avatar
  • 11
1 vote
2 answers
816 views

rsync "File name too long (36)" error for filenames with UTF-8 characters

Trying to copy files from an NTFS-formatted HDD to an EXT4-formatted HDD, rsync fails to copy some of them having relatively long file names consisting of Asian (UTF-8) characters. For example, there'...
Sepp A's user avatar
  • 13
1 vote
3 answers
744 views

How to trim multiple file names using batch file

I need to trim all file names in a folder on a daily basis and therefore am searching for batch file recommendations. Any help is much appreciated!! The numbers behind the file names are changing on a ...
Lisa's user avatar
  • 11
0 votes
1 answer
114 views

How can I rename all files in a folder as page001.jpg, page002.jpg, page003.jpg, etc. sorted by their former filenames on Windows 10?

I have 50 JPG files in a folder: alice.jpg bob.jpg bobby.jpg etc. How can I rename the files as: page001.jpg page002.jpg page003.jpg etc. sorted by their former filenames on Windows 10? (ascending ...
Franck Dernoncourt's user avatar
1 vote
0 answers
199 views

PTS timecode in milliseconds tweak to roll over at 60 seconds?

I'm using FFMPEG to extract images from an MP4. I have a large project where I need to extract a few hundred images. I've cobbled together a working solution from various sites since I'm not an FFMPEG ...
Kittmaster's user avatar
0 votes
1 answer
689 views

Git clone failed on Windows due to file name length

I'm trying to clone a Git repository on a Windows machine that has an NTFS volume. Unfortunately I get several errors: error: unable to create file (...) Filename too long The files in question are ...
Radu Murzea's user avatar
0 votes
0 answers
13 views

How to automatically repair copy/pasted filenames from web in Windows Explorer to avoid illegal characters?

Is there any way to paste text from web automatically simply as a single line text in Windows 10 File explorer? I'm surprised Microsoft Windows developers have never made it so that this error is ...
Rudolph's user avatar
  • 212
0 votes
0 answers
17 views

How to batch rename all files in a directory so they mach the filenames from another directory

I have accidentally deleted the random first 2 characters of my file and directory names on a data drive on Win10. Luckily I have a NAS backup. Is there a way to use the NAS backup to sync back the ...
Thadson's user avatar
0 votes
1 answer
150 views

ffmpeg segment naming of rtsp surveillance stream HikVisions

I need to ensure unique segment names: Apparent POE cable defects, etc. around campus cause HikVision camera streams to require their ffmpeg daemons re-started once or twice or more times/day. (I am ...
kenneth558's user avatar
0 votes
0 answers
133 views

Extracting data from filename with spaces in Batch file

I have a batch file that moves a list of files around by grabbing the first 6 characters from the filename and moving it to the folder containing the extracted characters. I need to take this one step ...
Lord Balthazar's user avatar
0 votes
1 answer
315 views

Filename of current slide on Win10 desktop

Windows 10 desktop is showing a slideshow of random images from a local folder. How can I find the filename of the current image?
Nick Jones's user avatar
0 votes
1 answer
40 views

How can I find original or past filenames if I did not created a security copy or a point of restoration?

I used a program for changing file names in a masive way, that program I used was "reNamer", but now I'd like to return all the original names because I believe I made an error when I tried ...
Juan's user avatar
  • 1
1 vote
0 answers
155 views

Replace 2 of 3 hyphens in a filename with SPACE hyphen SPACE in Powershell

I have been attempting to modify the following example given for a similar question in Powershell, to match my own needs. Running the example works fine. Please could you assist in how to change the ...
Adam W's user avatar
  • 11
1 vote
0 answers
15 views

search for a substring in file name with built in windows search on Windows 11 [duplicate]

am using windows 11 and I find that the built in search facility is not working as expected. I have a folder like this and when I search it like this, I get no result. I would like the search tool ...
CSEE's user avatar
  • 41
0 votes
2 answers
47 views

Separate text files for over 15,000 photo files, with the same name as each photo

My problem is that I have over 10.000 photo files on my laptop and wanna transfer them into the cloud to make space (and a faster laptop). But after doing that, my search engine "Everything" ...
JanFromHolland's user avatar
1 vote
0 answers
153 views

rclone not replacing invalid characters when syncing to SD card

I'm using rclone to sync stuff to both Google Drive and my phone's SD card formatted as vFAT. I've created the test file named a*b?c: containing special characters that are in my music library. ...
ChocolateOverflow's user avatar
-1 votes
1 answer
1k views

Which Unicode characters cannot be used for NTFS file names?

Typically, my programs are creating files with Extended Latin, CJK or Arabic characters in file names without issues and according to input data. I was under impression that only officially named ...
miroxlav's user avatar
  • 12.9k
1 vote
1 answer
27 views

Downloading a PDF from email: "/" gets replaced

First of all, this is my first time using super user. I'm pretty sure that SO isn't the right place to ask this, and this isn't limited to just Mac, as it's with email, so I decided to ask here. If ...
Ryan Fu's user avatar
  • 113
0 votes
1 answer
3k views

MobaXterm - Why is my LOG filename shows "localhost" instead of my hostname when establishing an SSH session?

I'm quite new with MobaXterm. For each SSH session that I open to a given host, I want to log the terminal output to an individual file whose filename includes the given hostname + timestamp. I have ...
Jean-Marc's user avatar
3 votes
1 answer
931 views

Powershell: Using .Split on Filename functioning differently based on filename capitalization

I have a bunch of image files that accidentally got renamed with a "doubled" file extension (e.g. IMG_1469.jpg.jpg). I wrote a script to remove the extra file extension, but for some reason, ...
JWW-CSISD's user avatar
0 votes
0 answers
22 views

Audit Request for Complete List of Recognized Filename Extensions in FFMPEG FFPROBE FFPLAY

I understand FFMPEG has a list of supported codecs and some users will be tempted to dismissively handwave my request by telling me to do my own research on codecs. Those responses will be treated ...
raccoon's user avatar
  • 115
1 vote
1 answer
756 views

Windows Explorer filename sort order: why ×a before 'a?

Have a look at this filename sort order in Windows 10 Explorer: The character ' is mostly sorted before ×. But why is it the other way around for 'a vs. ×a?
root's user avatar
  • 1,052
1 vote
0 answers
43 views

Is there a good alternative to apostrophe s in file name?

If an one file named zelda's_sword.jpg is here, is there a good character or convention to replace 's? I know that sword_of_zelda.jpg will be good alternative but I don't want for several reasons.
miniar's user avatar
  • 11
-1 votes
1 answer
394 views

How do I access a file on Windows with an invalid filename?

I recovered a file using Recuva from (I believe) a FAT32 file system to an NTFS file system with Windows 10 installed. The file had a space in its name: The Grilling . In Windows, I know that ...
Anonymous's user avatar
  • 351
1 vote
1 answer
56 views

What Could Explain This Odd "Automatic Save" Behavior of Notepad?

I have recently encountered this very odd behavior using the basic Notepad of Windows 10, and I can't figure out what could explain it. I'm using the MT Power Drumkit 2 plugin for the LMMS music ...
user avatar
0 votes
1 answer
66 views

PDF-Pages To PNG And Back To PDF In A Hotfolder Via Script

For security-reasons I want to decompose PDF-files and put them back together (like printing them and scanning them back in). I want to offer this for my users, so I would like to script a kind of ...
OneFineAdmin's user avatar
1 vote
1 answer
10k views

Batch copy file with current date in file name

How to copy files from one directory to another, whose names contain current date, and so the names change daily. Example: File name: Test_14042021.txt Date today: 14/04/2021 // DDMMYYYY I tried this,...
Raghunath Kurup's user avatar
3 votes
2 answers
1k views

How can I modify path coming from {} in `find -exec`?

I've been reading quite a few posts howto find files and copy those. What I want to achieve. Copy all *.jpg files from every directory to one directory. To avoid overwriting my intention is to add or ...
HvdW's user avatar
  • 41
0 votes
1 answer
57 views

Remove all "-min" endings from a batch of jpg or png files

Using the CMD (or some other way) on windows, how can I quickly rename all files [FILE_NAME]-min.png to FILE_NAME.png? I know a command like forfiles /m \*-min /c "cmd /c rename @file @fname.png&...
Mike Smith's user avatar
0 votes
0 answers
912 views

How bypass long path names during copy from hard drive to external hard drive

I have a big problem during copy files from my hard drive to external hard drive. During copy i saw 10-40 errors related to long path names and i skipped all of them. Unfortunately windows 7 do n't ...
SilverLight's user avatar
  • 1,354
6 votes
3 answers
3k views

The maximum length of the path of a file: 259 or 258 characters?

I try to understand what is the maximum valid length of the path a file. For this, I use the default Windows file manager, on Windows 7, and the following PowerShell script: Get-ChildItem | Select ...
john c. j.'s user avatar
0 votes
0 answers
477 views

What is this for a file name encoding and how to fix it?

On my Linux machine I found old files (at least from 2004 if not older), so possibly Win9x days. Maybe they came over some old FAT drive on my disk or some old Samba share. Umlaute are very weirdly ...
divB's user avatar
  • 565
0 votes
1 answer
159 views

How do you create your own filename extension that works on Windows 10?

I created a .pdf file that I called dhwd7486.pdf, because I want to create something great (this is included), I renamed the file extension into .unused (cuz I use it occasionally), but I thought it ...
IDK's user avatar
  • 1
1 vote
0 answers
1k views

Rename a file with special characters and symbols? [duplicate]

I have read carefully the answers on this post. None of them helps me. I have accidentally download a file with non-ASCII characters into my Windows desktop as shown. I cannot move it or rename the ...
ozturkib's user avatar
  • 301
0 votes
1 answer
1k views

“ls” found a file, “cp” cannot find it (cannot stat)

I have a file called guess.cpp.  I confirmed its existence with ls, but when I try to copy it, I get a “No such file or directory” error message: ~$ ls ~cs252/Assignments/guess guess.cpp yesno.cpp ...
Nick's user avatar
  • 1
0 votes
0 answers
21 views

What are longest extension names functioning in actual programs? [duplicate]

I'm writing piece of code detecting file extensions and I was getting quite a lot of garbage like . Jones - Some Document Title just because file name was starting with Dr. Jones. So I decided to put ...
Lapsio's user avatar
  • 730
0 votes
0 answers
85 views

How to restore a time machine backup of a volume whose name contains a slash

I am trying to restore a volume from a time machine backup on a different machine using tmutil on a Mac. Unfortunately, the volume I am trying to restore was named "/#defaults". File names ...
wordragon's user avatar
  • 101
1 vote
1 answer
50 views

How to rename a file with a : on a MacBook?

I'm accessing a Windows HDD from my MacBook (local network). The HDD has a file with a : in it, which is not a valid character on both Windows and Mac. I wanted to rename the file from my Mac since it ...
Edgar Derby's user avatar
0 votes
0 answers
42 views

Cannot delete temporary file with extremely long name

I ran BleachBit for Linux on an external hard drive with the wipe-free-space function (empty space is overwritten with zeros) and for some reason the program crashed mid-course. It left over a ...
david's user avatar
  • 287

1
2 3 4 5
10