4,190 questions
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
355 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
154 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
131 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
98 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
67 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
124 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
64 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
122 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
84 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
168 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
85 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
39 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
130 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 ...