Questions tagged [file-search]

This tag can refer to the process of searching a system for a specific file or the process of searching the contents of a file for specific keywords.

This tag can refer to

  1. The process of searching a system for a specific file.

  2. The process of searching the contents of a file for specific keywords.

189 questions
3
votes
3 answers

Recursive File Search in VB.NET

I have a function that does a recursive directory search for files but when I search a Drive I get Access denied errors which stops the search. How can I avoid these errors? Here's the function I use: lstSearch =…
NPS
  • 31
  • 1
  • 5
3
votes
6 answers

find specific file type from folder and its sub folder

I am writing a method to get specific file type such as pdf or txt from folders and subfolders but I am lacking to solve this problem. here is my code // .............list file File directory = new File(directoryName); // get all the…
user2614607
  • 151
  • 2
  • 6
  • 17
2
votes
0 answers

Search File by Capitalized First Letters in VS Code

In many IDEs (e.g. IntelliJ, Eclipse) when I want to search for a file, I can type just the capitals of the CamelCase-style named file (e.g. AC-> ApprovalContainer). However, VSCode does not seem to match the Capital Letters. AC could result in any…
Dániel Somogyi
  • 730
  • 7
  • 19
2
votes
0 answers

Searching a file using std::filesystem and multithreading

I wrote a program to search a file by name on system using std::filesystem (recursive search using std::filesystem::recursive_directory_iterator). It works properly if I use only one main thread, execution time ~1 second, if I start from root ("/")…
2
votes
1 answer

Inno Setup: How do I recursively list all directories in a given path that includes a specific file (in this case, '240.json')?

I am currently stuck with this bit of code that only gives me the very first occurrence of a specific file in the top most folder of a given directory that I am trying to find. I want to modify this to list/return all occurrences of the file. {…
2
votes
2 answers

Most efficient way for searching all files with the same filename in python

I want to find the extensions for all files with the same name in a folder. So for example, if a directory contains 2 files named test.csv and test.txt. I want the program to return a list containing ".txt" and ".csv". I have…
MrHat
  • 23
  • 8
2
votes
3 answers

Batch File - Search for a word and extract the next word in a variable

I have a log file which has a lot of text in no particular format. It has a particular variable 'SId' which has been assigned a lot of values as the file progressed. For example: For the first line le=24 we have SId = 23 and then, on second it's SId…
2
votes
2 answers

Python Loop from current file

I'm am trying to through files in a directory and find duplicates and delete them. I have 29 000 files in the directory so doing a brute force will take more than a day. I have filenames that are as follow: "some_file_name" "some-file-name" So one…
JurgR
  • 65
  • 1
  • 8
2
votes
1 answer

Searching approx 150,000 words in a file that contains approx 3 million words

I am working on text summarization and to build my vocabulary, I have trained a dataset. Now I need vectors of those vocab words from Google's Word2Vec. I've written simple code that takes each word and searches for it in the google-vectors file…
2
votes
1 answer

Vim: Search for Files with Autocomplete

I found this plugin: http://vim.wikia.com/wiki/Find_files_in_subdirectories to be really useful to find a file(s) using a wild card. For example, I can execute :Find edit*.php and it will find all the PHP files starting with the word edit.…
Rafid
  • 18,991
  • 23
  • 72
  • 108
2
votes
4 answers

Most efficient way to find total files of certain format that exist in the directory

In my android app I need to find if a file of a certain format exists in the directory. I wrote the code and it works well but if the directory has too many directories each of which has many files and directories it becomes a bit slow. Note: I am…
varunkr
  • 5,364
  • 11
  • 50
  • 99
2
votes
5 answers

Better Way to find all Files in Directory

I'm looking for a way to improve my File Search. Currently i'm working with this Method: public IEnumerable FindFilesInDirectory(string dirPath, string searchName) { return Directory.Exists(dirPath) ?…
2
votes
0 answers

MinGW File and folder listing problems

Here's part of code for my application I'm porting to windowsXp initially written on Ubuntu. #include #include #include #include #include int list_files(char *parentdir) { DIR *dir; struct…
user000001
  • 21
  • 2
2
votes
1 answer

Wildcard file search in WScript

I need to get all the files in a folder that match a certain wildcard pattern, using JScript. For example: var fso = new ActiveXObject("Scripting.FileSystemObject"); var folderName = "C:\\TRScanFolder\\"; var folder = fso.GetFolder(folderName); var…
Kendall Frey
  • 43,130
  • 20
  • 110
  • 148
1
vote
2 answers

Xpath find files for windows? xml parser to find files in windows

So we have 1500 xhtml pages in lets say 100 subfolders of /myfolder. I want to find evil constellations of .... .... .... In my current case, it is only allowed to have…
Toskan
  • 13,911
  • 14
  • 95
  • 185
1 2
3
12 13