4,180
questions
1
vote
0
answers
33
views
Text encoding used in filenames of non-text files
Background
We have a system created for a client that uses a Logic App to process some files and pass them to an API which stores the files in blob storage and the file metadata in a database.
When ...
0
votes
0
answers
32
views
shell script does not detect file name correctly
I have the file named as: /home/cti/10min_test/CTI_poult_20240902005000.csv
and wrote this shell script below:
CURRENT_TIME=$(date -d "+1 hour +50 minutes" +%Y%m%d%H%M)
CURRENT_TIME_TRIMMED=$...
1
vote
1
answer
58
views
VBA to print each table row to pdf using last table column as the filename
I need to export details of each Table row (Table1) to pdf, setting the filename from the column Table1[Student ID] for each exported row. It would be ideal to exclude blank cells in the row from the ...
0
votes
0
answers
34
views
Python3 alphanumeric sorting of filenames [duplicate]
in python3 how would I sort myList into the desiredOrder:
myList = ['2', '3', '10', '4c', '4d', '4a', '4b', '5', '6', '6a', '6d', '6b', '6c', '6e', '6f', '7', '8']
desiredOrder = ['2', '3', '4a', '4b'...
1
vote
0
answers
24
views
Setting valid filenames on generated thumbnail images
This is probably an extremely simple question. I found filePond in a random search for thumbnailing images on the fly. It works great to generate the smaller thumbs (multiple size versions, too!). I ...
-1
votes
2
answers
82
views
Proper use of quotes in a command substitution - how? [closed]
In a rather large project, I run into the following problem: while calculating the correct command in a bash script, I don't manage to make the script respect the double quote necessary for single ...
0
votes
3
answers
94
views
Batch command to move files which names contain a certain amount of alphanumeric characters
I have hundreds of files that when created generate a random file name with either 15 character or 32 character. I need to target only the 32 character files to move. I need this to be a batch command....
0
votes
1
answer
61
views
How to read inline type File in .Net 8 C#
I am trying to upload the image without a filename. The API received null in the file parameter.
The Request Send code (client side):
var content = new MultipartFormDataContent
{
{ new ...
-1
votes
0
answers
25
views
When dealing with long filename, why are the number of 180 and 190 special?
If the filename has 180 characters (not include the extension .md), Python Mkdocs builds fine. Starting at 181 characters, the error is:
FileNotFoundError: [WinError 206] The filename or extension is ...
1
vote
1
answer
86
views
how to rename file after export from filename sequential based on expression datatable in VB.NET
I'm Trying to to rename file image after export with datatable in VB.NET
I use library control LabelControl for .NET from BaiqiSoft
I have also asked Baiqisoft support and then he replied "this ...
0
votes
1
answer
35
views
Windows batch and ffprobe -- problem with filenames starting with "-"
If the file name (%F) starts with a "-" character, the file is not found by ffprobe.exe (the file name from the next character after "-" is passed to ffprobe).
How to save this ...
0
votes
0
answers
26
views
How to use shm_open() with a Unique Filename (or alternatives)
I am writing a set of programs on Linux that use shared memory. Currently I call shm_open() with a predetermined name for the shared memory. This works fine as I currently only have one set of ...
0
votes
2
answers
33
views
How to get the current function name and file name and location (path) in python ? And how to get the calling function data as-well?
I've been searching for some useful code examples on this subject for creating a simple logger for my program.
Here are the things I've searched:
Getting the current function info (name, arguments, ...
-1
votes
1
answer
64
views
How to parse accented file names in a batch file to open a file in a relative position?
I got a lot of use out of this answer, thank you so much. It works just fine, but what if I have accented characters in the target file name?
This works fine:
Target E:\GD\A\'Modernist Villa' (Malaga)...
0
votes
0
answers
28
views
Python code is supposed to resize and rename photos a base name + 'a' 'b'...'z' -'aa' 'bb'...'zz' it instead does is 'aa' 'ab' 'ac'...ect
import os
import tkinter as tk
from tkinter import filedialog, messagebox, ttk, simpledialog
from PIL import Image
import threading
# Function to resize and rename images
def resize_and_rename(...
1
vote
1
answer
37
views
Spaces in file name in MSDOS batch file
This is the error I have when running my test.bat file:
C:\Users>test.bat
C:\Dir1 1\file.csv
The system cannot find the file C:\Dir1.
This is the test.bat file content:
@Echo off
set "...
1
vote
3
answers
77
views
Can I find a string within a file name and delete that string in VBA?
I am working within a quality system, and I work off of a redlined document (microsoft word). When I go to upload it into our system, I need to upload the redlined version (it says "redlines"...
1
vote
1
answer
57
views
How to save file name with special characters (eg with < > : / \) using pptxgenjs
I am using pptxgenjs to create ppt and trying to save file name with special characters.
E.g.: Filename- Version:1_DataModel. By default, the microsoft power point is not allowing the certain special ...
1
vote
0
answers
32
views
Get the R script file name that is currently runing on VScode
I'm running several scripts on a hpc and it would be helpful to know what is currently running when I check the .slurm file
I'm writing my R script on VScode, and running
context <- rstudioapi::...
1
vote
1
answer
69
views
Change tab name using php when displaying a file/image
I'm currently creating a php page that receives an image from one API and shows that image (this php allows the user to define the image dimensions using GET methods).
I want that this php file ...
-3
votes
2
answers
59
views
Unable to identify syntax required to rename files in MacOS Terminal [closed]
This is a head scratcher.
I need to move these three oddly-named files from an external 2.5" SSD to my desktop. The file names were intended to have variables replaced by date info, however, ...
-1
votes
3
answers
116
views
delete the characters of a filename from a specific position
i have 100 files in a folder with filenames as below
Example1: GCA_000696115.1_SoWt_assembly_genomic.fna
(0 to 15 characters are GCA_000696115.1)
Question1: remove characters after 15th ...
0
votes
2
answers
102
views
Makefile change output hex file name using #define from header file
I use a #define inside a header file for firmware version. Can the makefile append the version number from the #define to the name of the hex file? Im using Atmel Studio on Windows. I was able to use ...
0
votes
2
answers
31
views
VSTO Outlook Addin Get Filename from .msg File
An .msg file from anywhere in the file system is opened in Outlook. How can you determine the complete file name in a VSTO add-in?
Is there perhaps a special property that can be accessed via ...
0
votes
0
answers
31
views
Can't remove file from git that starts with backspace "\b"
I have a very strange situation where I received a private repo from a past developer. One of the folders in the repo starts with a hidden character, specifically the backspace char, or '\b'. My ...
1
vote
4
answers
68
views
Git: retrieving the name of the original name of a document
I changed the name of an old file I committed several days ago. Now I need the name of that original document for a board meeting presentation. If it makes any difference, I'm on iMac OSX using iTerm2....
0
votes
2
answers
39
views
How to get a file's name without its extension or to load the entire path with the file without the file's extension?
I have the following following String Array:
from tkinter import filedialog as fd
pathName = fd.askopenfilename(filetypes=[('Python file','*.py')])
Output
#pathName = 'C:\Users\User\Desktop\...
0
votes
1
answer
34
views
Windows bat file for loop missing ! character from file name
I have this code for looping over MP4 files in a directory:
for /f "tokens=*" %%f in ('dir /b .\*.mp4') do (
call :processing "%%~nxf"
)
my problem is that If the MP4 file ...
0
votes
0
answers
42
views
AppleScript file renaming folder action script errors out
I sought to create an AppleScript folder action to rename files added to a folder by giving them a warning prefix if they lack a double space and three space prefix if they lack spaces altogether. I ...
0
votes
1
answer
24
views
How to reject same filename and ask the user to rename the file using upload class in codeigniter,?
I am creating an upload form using codeiginiter upload class to facilitate user uploading file (allowed .csv only). I want to force the users renaming their filename before they upload the csv by ...
0
votes
0
answers
20
views
NIFI:Extract filename using NIFI and store the filenames in a single file
I'm new to NiFi.
I've been working on reading multiple files using ListFile and FetchFile processors. Now, I want to extract the filenames from those files and store all of them in a CSV file that ...
0
votes
0
answers
47
views
Retrieve/Export File List of Media URL in Wix
How can I retrieve a list of file names (URLS) of the media uploaded in my Wix Media.
I would need the list of file names in alphabetical order.
Given the amount of media I'm working with, I cannot ...
0
votes
1
answer
29
views
Delete all files files in a folder three with two conditions: filename has only digits and a specific extension
thank you for your help. I look for a code to select all files in a folder three which have the filename similar to: ###.xlsx, where # is a digit. I am a newbie, and found a code that works for ...
0
votes
0
answers
68
views
What does the filename "gmon.out" stand for?
The GNU compiler toolset has a profiler "gprof" for performance analysis of C++ programs. With the -pg switch, the gcc compiler will make executables that write a data file, "gmon.out&...
0
votes
0
answers
57
views
Why do my Windows filenames keep getting converted in FFMPEG?
I'm running a script that walks through a large library of .flac music, making a mirror library with the same structure but converted to .opus. I'm doing this on Windows 11, so I believe the source ...
0
votes
0
answers
106
views
Power Query - Get data from file where part of file name changes each time
I'm trying to use power Query to automatically bring in data to review. I have my excel template setup to bring in data from an Excel file. I have 18 files and they each go into their own tab in my 1 ...
1
vote
1
answer
61
views
My Google Apps Script renames all files in a folder from data in a spreadsheet. Can someone explain why it returns an exception error?
This project runs from a spreadsheet. It consists of two functions (see code below): The first function, getFilenames, clears a sheet named "Rename," sets up column headers, and populates ...
0
votes
2
answers
55
views
excel filename by vba script causes 2 filenames
I have a workbook with a script which save an excel document with the filename on 2 different locations. I have tested and tried the script and it worked perfectly. Today I used the same script for 3 ...
0
votes
1
answer
140
views
Applescript How to get the filename from open -a "xx.app" [file] --args "someargs" in the applescript
I created a macos application launcher who is launching a apple script as the exec file.
The problem is that I can not intercept the file of the open command in the script or do not know or find ...
0
votes
2
answers
267
views
How to rename file name in Linux using the command "rename"?
I have some files that names like this:
2311110-1_1.umi_bc1.fastp.fq.gz
2311110-1_1.umi.fastp.fq.gz
Now i want to change the names to:
231110-1_1.umi_bc1.fastp.fq.gz
231110-1_1.umi.fastp.fq.gz
After ...
3
votes
0
answers
131
views
Changing the all filename field of WooCommerce products
I have many plugins that use filename field of the file of my WooCommerce downloadable product, to show the download button!
WooCommerce also does this here to display the file name in the user panel:
...
0
votes
1
answer
40
views
C++ - Shell API - Is there a way to convert a display file name to a parsed file name?
In the Windows Shell API, is there a way to convert a display file name to a parsed file name?
For example, I have an IDL located on an external storage with resolves to the following parsed name:
::{...
1
vote
1
answer
81
views
Call windows explorer to refresh recycle bin filename
I changed recycle bin name by this code:
HKEY recycleBinHKey;
LPCSTR registrySubkey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}";
...
0
votes
1
answer
49
views
How to speed up Open Folder "whose name starts with" in AppleScript
Here's my basic AppleScript...
I have a fixed file path, followed by 1 variable folder, followed by a variable partial folder name (ie variable folder starts with "12345").
What I failed to ...
0
votes
0
answers
38
views
How can I use VBA coding to make word automatically remember the filename of a dragged and dropped image?
I have tried to drag and drop an image into MS Word that should contain the filename without displaying it on screen. Then when a macro is run using Alt+F8 it should retrieve the filename.
Can you ...
0
votes
0
answers
222
views
Parent directory \results does not exist, in pytorch when trying to save a new network
I am having trouble with saving my network on PyTorch.
I have the following code here: It is from this site https://nextjournal.com/gkoehler/pytorch-mnist#training-the-model
def train(epoch):
...
0
votes
3
answers
70
views
Extracting the date from a filename
I have a folder with over 400 satellite images with names such as:
filenames <- c("mosaic_NDVI_2000_10_15.tif", "mosaic_NDVI_2000_10_31.tif", "mosaic_NDVI_2000_11_16.tif&...
0
votes
0
answers
159
views
Render PDF from byte[] with specific filename using blazor .net 8
I've created a new project using visual studio templates to describe my problem.
New project information template information:
Blazor Web App.
Framework: .NET 8.0 (Long Term Support)
Authentication ...
-3
votes
3
answers
169
views
Use Python or Shell to answer this challenge
For this challenge, the task is to read a text file containing lists of filenames with extensions and determine which names are unique per row, ignoring the file extensions.
For example, consider the ...
1
vote
1
answer
100
views
Replace question mark in URL using .htaccess
I have some files that exist under a directory and its name contains a question mark.
I'm trying to replace the ? with %3F (URL encoded ?) but I get a "404 Not Found" response. Numbers in ...