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.
4,150
questions
0
votes
0
answers
16
views
.CSV extension not removing from Renaming VBA
I'm trying to remove the .csv from the new sheet name when using VBA, and try as I might, it is not going so well. I've tried multiple variations of Right, Left and Len and I don't seem to be getting ...
1
vote
3
answers
42
views
How to use a list of filenames with spaces in a variable to pass the contents of the variable as an argument to du?
I have a list of filenames in variable in my bash script.
And I need to summarize disk usage of listed files.
But I can't figure out how to escape spaces in file names.
I tried various options, none ...
1
vote
3
answers
36
views
Modify filenames with patterns from another file
I have these filenames :
demux.16S_For_bc1005--16S_Rev_bc1033.bam
demux.16S_For_bc1005--16S_Rev_bc1044.bam
demux.16S_For_bc1005--16S_Rev_bc1045.bam
demux.16S_For_bc1005--16S_Rev_bc1054.bam
I have ...
0
votes
0
answers
5
views
Creating Excel button save as different folder and different name everytime
I want to save an Excel file using a created button inside Excel to automatically save the file when pressed to a specific folder using cell E3 in conjunction with actual today's date as the file name....
0
votes
1
answer
50
views
Azure DevOps build pipeline corrupts unicode filenames
We have a legacy .NET MVC 5 project targeting .NET Framework 4.7.2. We've created a build pipeline in Azure Devops using Classic interface (we will switch to YAML later), and we have a hosted agent ...
0
votes
0
answers
17
views
How to get a module's filename or path with Node?
I'm trying to create a generic function in TS that takes a module as a parameter, has some custom logic but most importantly, at the beginning needs to either get a filename or file path from the ...
1
vote
1
answer
25
views
is r-x file considered read only or not?
A file is considered "read-only" if reading the file is
allowed but writing to the file is not permitted.
What if the file has the following permissions (r and x)
root r-x file_name.xls
Is ...
0
votes
0
answers
29
views
when i change the folders name, some HTML functions start working
Im doing a project and this page is a filter search, i wanted to maintain the same folder name that i was already using, but i dont know for what reason if the folder name is paineis(the name that i'...
-3
votes
1
answer
27
views
Please tell me how to correct the following issue [closed]
C:\Users\User>(r"C:\Users\User\Desktop\fix2.py")
The filename, directory name, or volume label syntax is incorrect.
I started with the error below and as I attempt to correct based on ...
0
votes
0
answers
29
views
How do I dynamically change a value in a file path text in excel?
I have a column (A) with order numbers and a second column (B) which points to the directory from which I need value for that work order number. Column A is manual entry and in Column B the formula is
...
0
votes
1
answer
19
views
Custom name when upload file in laravel
I wanna ask, how am I supposed to write on the $fileName if I want to custom an image file when I upload it like for example product-code_product-name.jpg or something like 111_instant-noodle.jpg?
and ...
0
votes
0
answers
26
views
Wierd name displayed by git status [duplicate]
When i rename part of file from hyphen to underscore original name of file in git status
For example My-file.examaple wil became My\342\200\223file.example.
But wierd is when I use Jetbrains gui for ...
0
votes
0
answers
6
views
how RegEx can remain within the Widows 255 chars limit for filenames, if we want to use the pattern as a filename?
Filenames in Windows are limited to 255 chars, so, if want to use a RegEx pattern as my filename, I will have to remain forcibly within this limit...
Now, is there any process/function (at its very ...
0
votes
2
answers
43
views
How to Compare Lists for Updated Values
I have two directories - one with older data and one with newer data. As files are moved over between directories, the filenames are updated from 'old-filename.ext' to 'old-filename-updated.ext'. The ...
1
vote
0
answers
27
views
Rest API mocking with wiremock - json
wiremock stub : curl to json generation
I am trying to set up a wiremock stub
curl -X 'PUT’ \ 'https://ip/upload/file’ \ -H 'accept: application/json’ \ -H 'authorization: sso-auth' \ -H 'Content-Type:...
0
votes
3
answers
90
views
Is it possible to glob for *.yaml and *.yml files in one pattern?
How to find all .yml and .yaml files using a single glob pattern? Desired output:
>>> import os, glob
>>> os.listdir('.')
['f1.yaml', 'f2.yml', 'f0.txt']
>>> glob.glob(pat)
[...
0
votes
0
answers
17
views
File name out of SSRS with FacilityName_YYYYMMDDHHmmss timestamp
I am looking to create a subscription for a report that runs nightly, the file name requires the format of the date to be YYYYMMDDHHmmss. Adding @timestamp uses _ and does not supply seconds.
0
votes
2
answers
97
views
Matching a list of names to files when the names are reversed
I have a .csv with a column called 'Name' listing individuals in Firstname MI. Lastname format:
Stephen A. Johnson.
And I have a folder full of files made by these individuals in lastnamefirstname ...
0
votes
0
answers
25
views
Applescript rename file (increment) error number -1728
I wrote a small script just to incremente a series of file names. I want to get a file named "111 - something.pdf" and rename it to "112 - something.pdf"
But for some reason I'm ...
0
votes
0
answers
24
views
preloaded link font filename is uglified/hashed and causes mismatch
I'm facing a strange problem with webpack dev server, where a font served statically from my public folder via a link preload head tag is getting uglified/hashed in its filename.
In my @font-face ...
0
votes
1
answer
38
views
Jodit-angular editor uploads screenshots and customizes the file name with serial number
Paste a screenshot on the jodit editor, I can upload the screenshot through a customized url, but currently I cannot customize the file name of these screenshots as image+serial number.
I tried adding ...
0
votes
0
answers
27
views
How to rename a File via a batch-file but keep the file extention
I have several files like that:
File1.txt
File2.txt
...
FileN.txt
and an executable myExe.exe that takes each one of these files and returns a txt-file with another name but keeps the extention.
( e....
0
votes
0
answers
347
views
This version of python seems to be incorrectly compiled
I get this message every time I start any program:
This version of python seems to be incorrectly compiled
(internal generated filenames are not absolute).
This may make the debugger miss breakpoints.
...
0
votes
0
answers
30
views
Modules' names contain unicode characters. How to have them not encoded in suggestion?
Is there a way to tell VS Code to not apply URL encoding for module names? All the files are saved in UTF-8 so I guess there should be no worry of using Unicode characters in file names and variables. ...
0
votes
0
answers
55
views
Unicode Private Use Characters in NTFS Filenames
Windows uses characters in the Unicode private use area 0xf000 to 0xf0ff as a way of encoding characters that are legal in Linux filenames but not in Windows. These can come from Windows Subsystem for ...
0
votes
1
answer
41
views
Get files names with multiple extensions by a list of strings
In a VSTO solution I have a List of(Strings):
AA000017
FF100218
P0100217
DF100216
CODICE - CODE
A010AA77
B0000017
In a folder I have many file with different extensions, for example I have:
DF100216....
0
votes
0
answers
29
views
Naming FFMpeg output file after Container Conversion
I repackage .mkv and .avi to .mp4 using this command.
setlocal enabledelayedexpansion
for %%a in ( "*.mkv" "*.avi" ) do (
(ffmpeg -i "%%a" -c:v copy -c:a copy -y "%%...
0
votes
1
answer
31
views
Having issues with file naming
File name 'c:/Users/Mfoniso/Documents/CODE/NODE/meals-backend/src/models/mealModel.js' differs from already included file name 'c:/Users/Mfoniso/Documents/CODE/NODE/meals-backend/src/models/MealModel....
0
votes
0
answers
30
views
How can I handle a dynamic file name? [duplicate]
Every month I recieve a file with changing file name. It is a csv-file but due to the export system it has a changing file name every time it gets exported. Some examples:
XXXX.Traevbme
XXXX.Traevbme....
0
votes
0
answers
19
views
Search filename for keyword and batch rename files with said keyword
I would like to run a command to batch rename files that only have specific keywords at the start of the filename. I currently have a script that batch renames files in a folder and deletes anything ...
0
votes
2
answers
59
views
Powershell sorting files by name containing datestamp
Just stuck at the problem with sorting of files.
There are hosts that generates statistic files daily and later these files downloaded to the server.On the server they are processed by Powershell ...
2
votes
3
answers
130
views
Can you use Get-ChildItem -Filter to filter by filename length?
Is something like the below example code possible?
Get-ChildItem $copyFilePath -Filter $_.Basename.Length -ne 22 | forEach-Object{
Copy-Item -path "$($copyFilePath)\$($_....
0
votes
1
answer
65
views
processing a list of files using jq and saving output to file
I have a list of files like so:
/path/to/dir1/f1.json
/path/to/dir2/f1.json
/path/to/dir1/f12.json
..
the json is like so:
{"score": 0.98}
I would like to use jq to process all these files ...
0
votes
1
answer
42
views
regex query for filenames with multiple numbers at the beginning of the filename
I am trying to create a regex query. I need the regex query to extract filenames from a directory.
I will run the regex query via a bash/shell script
It is important that only files are found which ...
0
votes
2
answers
349
views
ReactJS component file name must start with uppercase letter
I am playing around with the ReactJS and i have noticed that name of file which export components always upper case. For example file that contain Book component ( i'm working with book list) name ...
2
votes
1
answer
69
views
Rename single file using content from txt file and saving in the same folder
After renaming a file unknown.txt to New_title.txt,
how is it possible to save a file on above it of it so that it saves a file inside the folder?
"names.txt" inside file text
New_title.txt
...
-4
votes
1
answer
41
views
Find a File name, with not exacly all the name
I have the following issue.
I have other program ( Not python), that save the file with: the constant name + random number.
For example:
file1=("C:\Users\Soc DRU USD 002\Banco Interlocutor ...
0
votes
2
answers
43
views
regex to change filenames
I'm sure there is a simple solution I'm missing here.
Please see below.
I need to rename these files basically by removing the preceding zero from the last section of the filename. It's tricking me ...
0
votes
1
answer
47
views
Replace characters in filenames with new characters
I am trying to batch rename files to replace hard brackets [] in filename with soft brackets ().
All files have the form series[sxxexx]title.mp4
Plex will not load files with [] so I need to replace;
*...
0
votes
2
answers
41
views
How to change pdf filenames in a directory from excel data?
I have an excel file with a column named old_name. Which is a column of a list of old filenames that need to be changed. Then in the next column I have new_name. I want to change all pdfs in a ...
0
votes
0
answers
67
views
VBA script to copy data from CSV files to specific sheets in Excel based on the file name
I have a master template excel file with 12 sheets named ‘DecisionEvent’, ‘invoices’ etc.
The Sheets have column headers.
Each week I must manually copy and paste data from 2 csv files into each of ...
0
votes
2
answers
43
views
remove numeric characters from filenames with ruby
Good morning everyone. I need to write a Ruby script to remove numeric characters from file names in a folder. It works, but unfortunately some files are deleted, because once the numeric characters ...
0
votes
0
answers
52
views
Rename multiple images within folders using text files
I'm trying to practice python with file rename.
Rename a multiple of images within folders, each folder contains a multiple of images,
each folder with a specific number, using text files, each text ...
0
votes
0
answers
41
views
OSError: [Errno 36] File name too long when deploying Flask project with BIGQUERY_KEY_PATH on Heroku
I have a Flask project that I am deploying to a Heroku server. I use a Config Var to setup a variable called BIGQUERY_KEY_PATH (.json key to a Service Account on my BigQuery database).
I have set up ...
0
votes
2
answers
99
views
How to massconvert filenames from PREFIX_00000000.png to PREFIX_HH:mm:ss.ffff.png
I've a huge number of png files, which are named the following way: PREFIX_00000000.png.
These files come from extracting frames from video files using ffmpeg -skip_frame nokey -i ORIGINALVIDEO.MP4 -...
0
votes
1
answer
44
views
VBA - Can't save workbook due to a naming error. (Error 1004) Not sure how to fix the program
Function export_to_csv(ws As Worksheet, filename As String, filepath As String, fileRange As String)
Dim LastRow As Long
Application.ScreenUpdating = False
If ws.AutoFilterMode Then Cells.AutoFilter
...
1
vote
1
answer
92
views
wildcard and dynamic filename on datafactory read file
ok I have to copy from a remote storage account a daily file. this file is generated with format name: File20230515063915.TXT meaning: "the word File"+year+month+date+hour, etc. everything ...
0
votes
0
answers
119
views
Safari download Japanese filename showing encoded string
A java web app has a download function, running on Mac Ventura 13.3 of English. Safari(v16.4) uses default encoding Western ISO Latin 1. The browser lists a Japanese file of "Report ...
1
vote
1
answer
229
views
Powershell remove [ ] (brackets) and () parentheses from filenames
I receive files from a source that places "[]" and "()" in the filenames. I wrote a script that removes other characters (spaces and commas, etc...) and it does great on them, but ...
0
votes
0
answers
26
views
Extract text from inside one text file and rename another file using that extracted text
In my script below I am trying to create a new filename for a step file. I am just not able to get the script to find the revision "0A" in the param_table.txt file.
Below is my script, ...