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
1
vote
2 answers

Optimizing python file search?

I'm having some trouble optimizing this part of code. It works, but seems unnecessary slow. The function searches after a searchString in a file starting on line line_nr and returns the line number for first hit. import linecache def…
user2987193
  • 133
  • 1
  • 1
  • 7
1
vote
2 answers

find all GET variables inside CMS

I'd like to rewrite all not existed GET parameters like www.example.com?afasfnk= to a 404 page. So all i need is to get all existed GET parameters and include them into my .htaccess., like this: RewriteCond %{QUERY_STRING} (^|&)=(.*) RewriteCond…
ilya bogackiy
  • 51
  • 1
  • 7
1
vote
1 answer

How to make a plugin based project

I want to make a web based application that can have plugins/apps 'installed' to it. What i mean by Apps is say a weather app which has its own CSS and JS files in a container with a specific ID like id="Weather-app". The Problems: (Assuming…
ChristopherStrydom
  • 7,338
  • 5
  • 21
  • 34
1
vote
2 answers

Python: How to search only USB flash drives?

I have a Python script which is designed to be run from a USB flash drive, and would not work if run from a PC hard drive, so it is safe to assume all copies exist on connected USBs. I have another script designed to be run from the computer hard…
Cailean Wilkinson
  • 1,420
  • 2
  • 19
  • 32
1
vote
0 answers

Which is the best searching technique for file search in android mobile?

Can any body tell me which is the best searching technique for searching files on android mobile.? I hv used sequential searching technique. Is there any algorithm which is more efficient than sequential/linear. If any pleas tell me how is it…
1
vote
0 answers

Performance effective solution for multiple wildcard mask searches in msbuild?

I'm creating msbuild project, and one of the tasks is to find all files in directories which satisfies any of file masks provided. I realized that even if I create just one-line Item with several wildcards in Include / Exclude attributes, msbuild…
Lanorkin
  • 7,310
  • 2
  • 42
  • 60
1
vote
0 answers

WIX FileSearch Name purpose when used inside RegistrySearch

Let's suppose we need to file if a dll is installed on machine. WE can use code
Sasha
  • 8,537
  • 4
  • 49
  • 76
1
vote
4 answers

Create a fast file search function in android

I'm new to android and I'm trying to develop file explorer which includes search function. I'm using a recursive search function that works fine in folders with a few subfolders and files, but for some reason it's EXTREMELY SLOW and could "Force…
kiko283
  • 490
  • 6
  • 15
0
votes
2 answers

solution to search into files (in lamp)

i have site that the user upload files (PDF,WORD,POWER POINT ....) and they want to have the ability to search word in the files, how can i do it ?
Haim Evgi
  • 123,187
  • 45
  • 217
  • 223
0
votes
2 answers

Which method to use in searching for a line in a file

I have a file with path names to files: /my/path1 /my/path11 /my/path12 /my/path13 The file structure is that it has individual paths in each line. All I want to do is search for the existence of a string /my/path1 or anyother in the above file…
footy
  • 5,803
  • 13
  • 48
  • 96
0
votes
3 answers

BAT script search for a particular type of file and execute a command

I want to search a particular file type(.plt) and then I want to execute a command line command(Eg. Change file type). I am working in windows 7. Can I write a .bat script to do this issue? Please help me.....please give me some example.....
lankabeta
  • 91
  • 2
  • 7
  • 15
0
votes
0 answers

Does SystemIndex in Window Search Service query only gets C:/Users/{currentUser}/ directory?

I looking for an efficient way to list all files in the drives. The easy way would be to list files in C#: static void Main(string[] args) { SearchFiles("C:\\", ".txt"); } public void SearchFiles(string rootDir, string…
Fatima A.
  • 41
  • 13
0
votes
1 answer

How can I change the ranking of a file in the Quick Open search results listing?

I am following the Airbnb naming convention https://airbnb.io/javascript/react/#naming Thus, I am using the index.tsx file to define my custom React Component but, I have an issue when searching for that component in VSCode. When looking for icon…
0
votes
0 answers

nested function overwrite my return buffer

i'm trying to write a python sw that takes every file in a defined directory and searches them in an another directory by means of the subdirectories' names in which files are contained. To do so i'm using os functions to navigate through files in…
0
votes
1 answer

Checking if file to be copied already exists in specified directory and if so skip the file and move onto next

I am iterating through a master directory with numerous sub-directories each containing their own sub-directories. I am looking to copy files of extension type .xlsx from the master directory to a new directory to collate all the files in a single…
BertC
  • 1
  • 2