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.
3,967
questions
0
votes
0
answers
12
views
Changing project names in intellij/pom.xml/git
I am wondering wether this might potentially break my project,
I copied a bunch of things from a reference project I had lying around, so when I did change some of these things the whole project ...
1
vote
1
answer
26
views
Date/time format not working - can't use in filename [duplicate]
I've tried searching for the solution but nothing quite fit the issue.
I have a function which exports data from my SQL Database and writes it into a CSV file.
The name of the file includes the ...
2
votes
2
answers
18
views
Define string variable that contains filename, then call this variable in path (R)
I have a script where I read rasters from .asc files, e.g.:
# Read raster
raster <- brick('directory/subdirectory/file_a.asc', varname = 'man')
Now I want to replace the filename in the path ...
2
votes
2
answers
43
views
Read a folder of excel files and import individual sheets as separate df's in R with Names
I have a folder of excel files that contain multiple sheets each. The sheets are named the same in each wb. I'm trying to import one specific named sheet for all excel files as separate data frames. I ...
0
votes
1
answer
47
views
Using python to FTP download files with specific dates in filename?
I'm trying to write a python script to download comics from a repository that has files named as such:
ba220627.tif
ba220628.tif
ba220629.tif
ba220701.tif
ba220702.tif
ba220703.tif
Say I want to ...
0
votes
1
answer
17
views
Why and how does R distinguish between two constructions of a file name?
I'm trying to dynamically create names for files that I need to read into R.
I'm getting unexpected results because my two ways of constructing the file name, below, are yielding different results, ...
1
vote
0
answers
32
views
How to get base64 image files with filename length over 100 characters using javascript, ReactJS
I'm trying to get the base64 (FileReader) image data after the file list is uploaded
But files whose names are longer than 100 characters cannot be retrieved.
Is there a way for me to solve this ...
0
votes
1
answer
26
views
How to remove filename from a path with only JS?
i was looking everywhere to a way of remove only the filename of a path with JS, but I only find information of how to remove the path, and keep the filename.
I have this path:
C:\Users\usuario\...
-2
votes
0
answers
37
views
Re or regex to check if output matches expected pattern [closed]
I have the below filename. I would like to create a regex that checks if it says Nomura followed by the set of digits and underscores before the .xlsx.
file_name = "C:/Users/JWein/Downloads/...
0
votes
1
answer
44
views
Pass the names of the selected files from "Send To" menu to powershell script
I have a script that I wrote that is added to the "Send To" menu already, and it asks for a search string and then searches every .log and .txt file in that directory for the string.
But ...
0
votes
1
answer
19
views
How could I find out the old file name in Azure DevOps?
I moved a file one folder up. Now in Azure DevOps in commit content I see [rename] written next to the file, but I do not see how the file name was changed (i.e. I do not see the old file name). Is ...
0
votes
0
answers
7
views
LINUX : How to match a portion of filenames for an if loop?
I have a pool of files with a unique code included in their filenames. There are two files for each unique code that I need to match in order to execute a command with them.
Sample of files:
...
0
votes
1
answer
51
views
Python: Change Capitalization of a part of output file
I'm trying to change a python script that is designed to detect the language of the text in a file. It detects the language & puts the language detected in ISO format at the end of the filename. ...
-1
votes
2
answers
48
views
Rename multiple datetime files in Unix by inserting - and _ characters
I have many files in a directory that I want to rename so that they are recognizable according to a certain convention:
SURFACE_OBS:2019062200
SURFACE_OBS:2019062206
SURFACE_OBS:2019062212
SURFACE_OBS:...
1
vote
1
answer
40
views
How to filter by no extension in QFileSystemModel
The following code runs (after importing necessary libraries):
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle('MainWindow')
self....
1
vote
1
answer
27
views
How to upload file in R when the name changes everyday
I have a file that needs to be uploaded each day, file name MIS_01_10062022.xlsx. Each day MIS_01_ part of the file name is constant the date part - 10062022 changes due to date. How can I upload this ...
0
votes
3
answers
89
views
Getting part of a filename without ls command [closed]
Working in linux.
I have a directory where I have these files:
file-1.0.1.ext
file-2.0.5.ext
file-3.6.0.ext
...
file-9.0.9.ext
file-10.0.1.ext
I want to be able to list the latest version of these ...
0
votes
2
answers
69
views
How do I get the result of a command from a remote server using ssh?
I am working in Linux bash (version 16.04.4 LTS).
I am using ssh to connect to a remote server where I want to find for a specific file from a list of files (most recent file version) and then ...
1
vote
1
answer
82
views
How can I get the extension from a filepath?
Here is what I've tried:
filepath = "C:\\Users\\Nova\\Research\\data.txt"
extension = last(split(filepath,"."))
println(extension)
0
votes
0
answers
12
views
How can i number filenames
hello folks
in c++ i wrote this line to save bmp of screen with a number
"DXUTSnapD3D9Screenshot ( L"d:\render_configsystem\ScreenShot %.5d .bmp",piccounter);"
it runs for many ...
0
votes
0
answers
21
views
Microsoft Project VBA Print PDF
I'm trying to develop some code that prints a pdf of a specific view and filter of my schedule and saves the file in a specific folder with a specific name then repeats for a new filter and a new pdf ...
0
votes
1
answer
31
views
Find file in folder using cell value, then rename to another cell value
I'd appreacite your help on this one.
I need to do the following: I have some files in a folder (say, C:\MyFiles") with a bunch of PDFs in it. On Excel I have a list of numbers in column D which ...
0
votes
1
answer
19
views
How do i ONLY zip the subfolders' content rather than the subfolder itself?
I have some folders with content in it like this:
Mainfolder
|
|---SubFolder1
|
|----ContentFiles1
|----MoreContentFiles1
|
|---SubFolder2
|
|----ContentFiles2
|----...
1
vote
1
answer
31
views
Terminal Window and Vs Code Variables
I'm trying to retrieve vs code variable values from terminal window in VS Code, but all of them return an empty string. I need for example, get the name of the file opened in the vscode editor (from a ...
2
votes
1
answer
119
views
Find the file with higher version [duplicate]
I am working in Linux bash.
I have a directory where I have files like this:
xpto-10.20.30.tar.xz
xpto-10.20.30.tar.xz
xpto-20.20.30.tar.xz
xpto-30.20.30.tar.xz
xpto-10.20.30.tar.xz
xpto-40.20.30.tar....
0
votes
1
answer
31
views
Extract part of a filename to a variable [duplicate]
I am working in linux bash.
I have a filename which is captured by a script into this var ($filename).
The filename is something like this:
release-10.20.30.tar.xz
I want to be able to capture the ...
1
vote
2
answers
39
views
PowerShell DownloadFile for File name Changing every day
Code below to download a file from website:
https://www.mcafee.com/enterprise/en-us/downloads/security-updates.html
File being downloaded
However, the file name is changing every day. For example: '...
1
vote
1
answer
40
views
Creating a neat csv file by filtering data and unnecessary information from a txt file
I have an assignment to export neat CSV files where only the headers and data are present, all other data must be filtered out. There are about 500+ text files.
Each file must be a separate CSV file, ...
0
votes
0
answers
3
views
Unable to upload asset
I am trying to upload asset. Request involves utf-8 encoded filename with not more than 240 bytes length but it is
constantly showing "Invalid Upload Request. Please check your URL and ensure ...
-2
votes
1
answer
17
views
How do i make a password and username in trinket python?
i have tried
def main():
while True:
UserName = input ("Enter Username: ")
PassWord = input ("Enter Password: ")
if UserName == Bob and PassWord == rainbow123:
time....
1
vote
0
answers
23
views
Add a column for filename when data is parsed from multiple xml files to individual pandas Data Frames
I have used the code below in the Anaconda/pandas environment to create dataframes from multiple xml files and then began analyzing the data:
"""Thanks to Roberto Preste Author From ...
0
votes
0
answers
16
views
how to extract variable name from a filename
I have data in many files. The file names themselves contain the variables that I need and I am not sure how to extract then, preferably by using csh commands. For example, here is a single file name:
...
0
votes
1
answer
45
views
Exclamation point problem when renaming files with cmd
I am using the following batch to randomly name files in a folder. Initially, i had a problem non English letters. I solved this problem with chcp 65001 . But i have problem with exclamation point. If ...
0
votes
0
answers
7
views
Why are the files called .babelRC and .npmRC? [duplicate]
Why do some config files, for instance .babelrc and .npmrc, use the rc ending in the file name? What does rc stand for?
0
votes
0
answers
5
views
How to fix missing filenames in a folder of images?
I have a folder comprising .jpg images with filenames name1.jpg, name2.jpg, etc. I wish to change their filenames to 0.jpg, 1.jpg, 2.jpg, etc. The following is my code
root_path = '/path/to/images'
...
0
votes
0
answers
42
views
How can I configure this code to use a file name with space(ie: hello world.c ) in Vs code terminal? I mean where is the error here?
Windows 11|| Vs Code version 1.67.1.0 || Power Shell 7.2.3
I have a filename with a space in it like hello world.c, and I want to compile this from VSCode.
The relevant section of my tasks.json file ...
0
votes
1
answer
26
views
FilenameFilter for several files
I have a folder where excel files are stored. The files always start with Template HP_x.xlsx (x stands for additional information). With a loop I have already read the path and the name of the file. ...
0
votes
2
answers
50
views
HTML can't properly read unicode in image tag src
I am using electron with html, css and js. For my desktop app, I want to import an image from my local storage using an img tag. However, my file name contains an unicode (e.g. #). When, HTML try to ...
0
votes
1
answer
71
views
Spring Boot Internationalization message filename structure
Spring boot allows you to customize message properties files by setting a basename followed by a the locale for example messages.properties and messages_de.properties.
I want to add a suffix to these ...
-1
votes
1
answer
20
views
.bat file to move other files based on file name
I have two folders. "Folder one" in which "folder two" is located. In "folder two" are .png files which carry the names of the files I would like to move from "...
3
votes
0
answers
25
views
How to compare filenames with OS-specific rules? [closed]
Different operating systems have different rules for determining if two file names match or not. For example, comparing 'abc' to 'ABC.' would be the same file under Windows but completely different ...
0
votes
2
answers
55
views
VBA on a MAC - How to read FileNames in a given Folder (have to avoid using the Windows ActiveX FileSystemObject)
I've got a Windows VBA code which I'd like to translate for a MAC, as there's no access to the ActiveX FileSystemObject.
My goal is to read all the FileNames of all PNG-Files in a given Folder. This ...
0
votes
2
answers
51
views
How to rename a group of similar files with only part of file name?
I have a group of files:
Ursus_fibroblast_ACT_34_CT0_adak_HJ_EV_S45_L002_R1_001_val_1.fq.gzAligned.out.sam
Ursus_fibroblast_ACT_34_CT12_adak_HJ_EV_S49_L002_R1_001_val_1.fq.gzAligned.out.sam
...
0
votes
3
answers
69
views
How to get the Directory name and file name of a bash script by bash?
Follow are known. Possible it helps:
Get the filename.extension incl. fullpath:
Script: /path1/path2/path3/path4/path5/bashfile.sh
#!/bin/bash
echo $0
read -r
Output:
/path1/path2/path3/path4/path5/...
-1
votes
1
answer
52
views
How can I change icon.filename of buildozer?
I use buildozer with kivy (python), and I'd like to change the icon. In buildozer.spec I found #icon.filename = %(source.dir)s/data/icon.png. I tried to uncomment this, but it is still not working.
...
0
votes
0
answers
27
views
Filesystems and upper/lower case characters in filenames
Needing to compact maximally the names of a lot of files in the same directory, I would like to use numbers and characters in these filenames.
0.png
1.png
..
9.png
A.png
B.png
..
00.png
..
It's ...
0
votes
0
answers
9
views
I run into an error when attempting to add today's date to file name
I suspect the error is where I attempted to add today's date to the filename.
ChDir _
"C:\Users\xxx\PRODUCT MGT Position Tracking\Stock reports"
ActiveWorkbook.SaveAs Filename:="C:\...
0
votes
2
answers
221
views
How to download multiple files using wget in linux and save them with custom name for each downloaded file
How to download multiple files using wget. Lets say i have a urls.txt containing several urls and i want to save them automatically with a custom filename for each file. How to do this?
I tried ...
0
votes
0
answers
96
views
Is there a way to determine if a shared path and a mapped local path are the same?
Let's say I have a file share at \\cloud\MyShare that is mapped to J:\Mason on my computer. If I have two filenames, \\cloud\MyShare\MyFolder\MyFile.dat and J:\Mason\MyFolder\MyFile.dat, is there any ...
0
votes
1
answer
45
views
Function to print the file name of the file that is calling the function
I want to create a log function that logs the name of the file that is calling the log function followed by the message I want to log 'message'
functions.py
def log(text):
print(os.path.basename(...