4,191 questions
Advice
0
votes
3
replies
41
views
Name collision between files in as content root source added projects in Pycharm
When I add a project as content source root in Settings/Project Structure, I can use all functions from that project in my current project, so this works fine. The problem arises if there are two ...
0
votes
1
answer
48
views
How can I determine the file extension when it can be two-level?
I am writing a function to generate a file name to avoid repetitions with a suffix similar to "(1)", which are automatically substituted by most browsers and other programs when downloading ...
1
vote
3
answers
386
views
Windows C++: Opening a file where path contains a non-ASCII character fails
I have the problem that in C++ with Visual Studio 2017, I can't open a file which has a non-ASCII character in the path.
Let's suppose I have a path D:\üab and a file test.txt in there.
The non-...
0
votes
0
answers
76
views
How to tell if these two identical-looking but differently encoded strings are the same? [duplicate]
I'm trying to import some data downloaded from Google Sheets.
The tab, when editing on the website, is called "Kodály". In Ruby, if I look at the individual characters, I see this:
>> ...
1
vote
2
answers
162
views
How to determine if 2 instances of java.nio.file.Path are pointing to the same file?
I have a simple problem -- I have multiple threads that are doing appends to a file, based upon a file name that the user can choose.
At first, I tried to synchronize on instances of Path, but after ...
0
votes
4
answers
137
views
Sort array by filenames independent of path
I have a list of complete filenames stored in an array such as:
./Downloads/epo6700lnx.zip
./Downloads/epo6600lnx.zip
./Desktop/epo6800lnx.zip
./Public/epo6900lnx.zip
I tried reverse sort, but get:
./...
0
votes
1
answer
101
views
Read from an Excel Source with a dynamic file name from variable
There are similar questions in this forum and elsewhere. however, none of the answers helped me.
I'm trying to read data from an Excel file with SSIS. The filename is dynamic based on a date. the date ...
0
votes
1
answer
68
views
Leading Spaces are removed when RTF scripted SAS dataset to Export into RTF while concatenating multiple reports
I am trying to concatenate multiple RTF reports into a single RTF file by importing into SAS data and Exporting to Combine RTF file. When I am doing that everything is transferred exactly except the ...
1
vote
1
answer
125
views
VBA Print to PDF with user having a choice
Trying to print a sheet into a pdf and allowing the user to choose the file name and destination. I am not sure why the code is not working. Excel highlights the If line and says "Object variable ...
0
votes
0
answers
67
views
How can I append a timestamp to a filename without triggering an OS vulnerability flag in GitLab CI/CD?
I'm trying to generate a filename in my C# application with a timestamp for file versioning, like this:
FileName = $"Professional_{DateTime.UtcNow.ToString("yyyy-MM-dd_HH-mm-ss")}.csv&...
1
vote
2
answers
127
views
How to serialize an OsString in a cross-platform manner
I am trying to store file paths in a file. These paths arrive as a PathBuf value. Unfortunately PathBuf cannot be converted directly to a byte slice. It can be converted to an OsString, but the ...
0
votes
0
answers
91
views
WMI queries to the CIM_DataFile class and the case of file name?
The problem:
My test VBScript (Windows Platform) to obtain filenames return the name of file, all in lowercases!
I would like keep the real cases of the filenames.
Anyone cant help me?
The WMI script:
...
1
vote
3
answers
172
views
Rename-Item : Cannot create a file when that file already exists - it doesn't
I'm trying to rename the following files in a batch:
image.part-Frag1
image.part-Frag10
image.part-Frag11
> Get-ChildItem *frag* | Rename-Item -NewName "$($_.Name).png"
... but am ...
0
votes
1
answer
90
views
space in url giving file not found error in browser
Physical folder having space: /about us/contactus.php
when we enter in browser https://www.example.com/about us/contactus.php
It will auto convert URL to https://www.example.com/about%20us/contactus....
0
votes
0
answers
40
views
How to 'automate' the matching of file names within a different command [duplicate]
I am working with RNA folding data which gets put through ViennaRNA's programs to convert dot-bracket notation and probability dot-plots into RNA structure diagrams. I can 'automate' the input of ...
1
vote
2
answers
132
views
Find duplicates files based on hash, with catch
I have a photo library that contains a lot of duplicate images. Unfortunately these sometimes have different names, because they also come from my wifes phone where the numbering is different.
On IOS ...
2
votes
6
answers
185
views
Move a string from a filename to the end of the filename in Python
If I have documents labeled:
2023_FamilyDrama.pdf
2024_FamilyDrama.pdf
2022-beachpics.pdf
2020 Hello_world bring fame.pdf
2019-this-is-my_doc.pdf
I would like them to be
FamilyDrama_2023.pdf
...
0
votes
1
answer
114
views
Extracting path and filename from a string containing both in vanilla SQLITE
I have a SQLITE DB that contains fullnames (i.e., parentpath\filename, e.g.
C:\Users\Public\My Music\Classic Queen\16 - Who Wants to Live Forever.mp3
I want to query and get the filename separate from ...
0
votes
2
answers
78
views
Output each checksum with its corresponding filename to seperate lines in a text file
I'm trying to output a checksum for six hundred tif files in a directory. I want each line to show the checksum followed by its respective file name.
For example:
b1039a6f0c4295916a82833f507f5e78 ...
1
vote
0
answers
39
views
upload file to akamai with file name not work
I am trying to upload a file to akamai.
The file name is empty even if I try to concatenate the name to routing
The file was uploaded properly but when I check the file name I have an empty name. So ...
0
votes
1
answer
84
views
Enclosing filename in quotes affects batch input
Let's say I have a batch file C:\MyFile.bat as follows:
echo This is my batch file
pause
I invoke it like this, because I need a new console window to open:
start /wait C:\MyFile.bat
I get the ...
-1
votes
1
answer
100
views
Changing path filename produces incorrect results on some computers. C++
I am getting a file path and then attempting to replace the filename with another. My code works correctly on one computer, but not on another.
Here is my code:
FILE* SETTINGS_FILE;
char value[255];
...
0
votes
3
answers
60
views
Changing multiple file names based off of a spreadsheet
It's been a while since I've done any code, and I can't remember much of what I am doing, but I ran into an issue where I am needing to change a lot of file names (I did it manually once, but turns ...
-3
votes
1
answer
88
views
Do file names have any effect on SEO [closed]
Do the physical filenames have any effect on SEO?
css files
html files
javascript files
image files
folder names
Thanks!
0
votes
2
answers
187
views
Keep file names merging list with lapply? [duplicate]
I am importing several .csv files of temperature registers from a folder, and need to create a single table mergind them all, in which the first 15 lines must be skipped and the file names must be ...
0
votes
0
answers
49
views
How do I access batched image filenames while using 'image_dataset_from_directory'?
I have a database of images that are close to 10 million images. I am using the classical definition below to build a dataset:
trainData = image_dataset_from_directory(
...
0
votes
1
answer
64
views
Batchfile problem processing 2 different filenames in loop at same time
I want to make a batch file, (Windows 10), to combine different tracks from 2 video files using mkvmerge!
I want to automate this using a loop so that all files in two different directories are ...
0
votes
1
answer
86
views
What is wrong with the way I concatenate paths in Emacs elisp
I have a .dir-locals.el file in my project in which I am configuring my project for debugging using dap-debug in Emacs with debugpy.
I have this variant of the .dir-locals.el file that works just fine:...
1
vote
1
answer
59
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
78
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 ...
1
vote
0
answers
58
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
116
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
126
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
104
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 ...
0
votes
1
answer
110
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
49
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
125
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
274
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
83
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
43
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
70
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
111
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
445
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
86
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
132
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 ...
-1
votes
3
answers
182
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
157
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
48
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
35
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 ...
2
votes
4
answers
93
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....