Questions tagged [filenames]

Filenames are metadata about a file; a string used to uniquely identify a file stored on the file system of a computer.

The filename is metadata about a file; a special kind of string used to uniquely identify a file stored on the file system of a computer. Some operating systems also identify directories in the same way. Different operating systems impose different restrictions on length and allowed characters on filenames.

4148 questions
1
vote
0 answers

Find files with multiple matches of a pattern in the filename in linux

I'm trying to find multiple files with 40 hexadecimal digits. I can use ls -l | grep '[0-9A-F]\{40\}' And see the files I want to see them but I want to use find for this for the sake of the challenge. I tried: find . -regextype grep -regex…
Doron Behar
  • 2,606
  • 2
  • 21
  • 24
1
vote
1 answer

How to use Excel to generate a folders containing a wordfile of the same name?

I am a tech writer, and I am looking for a way to streamline my software-release workflow. With every release, we get an Excel file of changes that contains a request number and a description. Our department creates a word document for each change,…
1
vote
1 answer

Regex to match single character filenames with an extension

I'm needing to locate any file that contains a single character filename with a 1-3 character extension. I've spent some time searching for how to do this, but can't see to find the right combination of regex. I'm using a solution that requires…
Vman
  • 11
  • 1
1
vote
1 answer

Copy multiple pdf files into another directory and every file creating folder with its name

I have a folder with around 150 pdf files. I would like to create folders in the name of the 150 files. After that I would like the pdf file to be moved to its respective folder.Can its possible in cmd or any exe file? Example E:\ |______…
1
vote
2 answers

Check for Invalid characters(Special Characters & International character) in file name without validating file path

I am trying to validate a file name with invalid characters in the file name without validating file path. I have tried various combinations but none of my javascript functions seem to do the trick. @Html.TextBoxFor(model => model.Attachment, new…
1
vote
1 answer

js get filename of file containing class definition

I would need to get the filename of an imported class: fileA.js export default class User { } fileB.js import User from './fileA' function getClassFilename(constructor) { // do something like __filename, but to get the filename where User is…
Chris
  • 13,100
  • 23
  • 79
  • 162
1
vote
1 answer

Java expand FilenameFilter

I have a method where upon calling a FilenameFilter is passed to (as anonymous inner class). Now, if a variable is set, I want to extend the FilenameFilter. Example: new FilenameFilter() { @Override public boolean accept(File dir, String…
XtremeBaumer
  • 6,275
  • 3
  • 19
  • 65
1
vote
1 answer

Is there a Windbg command for retrieving the module_name of a dump?

I'm working with windbg, using a script that I found somewhere on the internet, for investigating dump files of a C++ application. That script launches two commands: one to determine all symbols, present in the dump (at least that's what I think),…
Dominique
  • 16,450
  • 15
  • 56
  • 112
1
vote
1 answer

Extract part of file name and add it into a dataframe list

I have a list of dataframes that looks like this: I have filenames like this: testlist "Folder1/AT0ILL10000700500dymax.1-1-1990.31-12-2011" …
Essi
  • 761
  • 3
  • 12
  • 22
1
vote
2 answers

R - How to choose files by dates in file names?

its pretty hard to find a title for my question because its very specific. My problem is: I have around 9000 files of data collected over different periods. The filenames contain that periods and I only want to load that files into R, that contain…
Essi
  • 761
  • 3
  • 12
  • 22
1
vote
2 answers

batch file renaming "This.is.a.FIlename.mp3" to "tiaf.mp3"

okay so I have a dir with some files. I want to do a specific file-renamingscript i'm stuck with this part, taking only the first letter of each part of the filename: if the filename would be This.is.a.FIle.mp3 I would like to rename it…
Rps
  • 277
  • 1
  • 5
  • 25
1
vote
1 answer

Java - Japanese filenames garbled

I am running a standalone java process which writes data to multiple xlsx files in a parent target directory and upon completion, the entire target directory is zipped and uploaded to cloud and a download link is provided to the user. The xlsx file…
1
vote
1 answer

Batch Image files - Replace spaces with an underscore in filename

I want to go through a folder and replace all the spaces in a filename with an underscore. For example the image "dark green.jpg" would change to "dark_green.jpg". I have hundreds of images that a client uploaded to a site that need to be changed so…
MattM
  • 3,089
  • 7
  • 40
  • 62
1
vote
1 answer

Use email address as file name in Android

Due to some requirement I want to save text files files to Android's file system and read it anytime programmatically. For each user who will be using the same phone there will be a different text file stored. Unfortunately, at that time when the…
edeesan
  • 326
  • 3
  • 16
1
vote
2 answers

Parsing the file name from list of url links

Ok so I am using a script that is downloading a files from urls listed in a urls.txt. import urllib.request with open("urls.txt", "r") as file: linkList = file.readlines() for link in linkList: …
Seidhe
  • 83
  • 1
  • 11