Looking For Fast "Find In Files" Program?

Dec 21, 2010

I currently have a directory with 98,000 individual archive transaction files. I need to search those files for user input strings and have the option to open the files as it finds them or at the end of the search. I'm using Notepad++ currently and, while functional, it's quite slow. I thought about writing my own, but I am only familiar with .NET and I'm a beginner. Also, I'm not sure how efficient that would be compared to NP++.

This tool would be used again and again so the dev time would definitely be worth it if it came to that. Is there some other tool out there that's already developed that would accomplish this?

View 4 Replies


ADVERTISEMENT

Fast Method To Read Through Text Files

Jan 18, 2011

Any simple/easy (emphasis on easy, I am a major beginner) to read through text files quickly, search for strings and pull information. I am currently using the 'StreamReader' function and 'InStr' command, but the files I am working with are gigantic and this is taking from 1/2 an hour to a few hours to work its way through.

Here is a sample of the code I am currently using - poke fun at will, I am a major newbie.
strContentsTime1_jntfor=0
Do Until strContentsTime1_jntfor Is Nothing
strContentsTime1_jntfor = objFile1.ReadLine()
'look for string 'time'
strFindStringTime_jntfor = "time"
[Code] .....

View 13 Replies

Reading Text / ASCII Files Fast

Jan 19, 2011

Any fast way to read/search very large text files. I found this post for VB6, but I don't have the slightest clue what any of it means. [URL]. How to read/search huge files (up to a few GB and 20+million lines).

View 3 Replies

Read Fast The Size Of A Folder With Thousands Of Files?

Sep 17, 2011

i need to display the size of a folder but if i sum file.lengh by file.lefth it takes to long,is there a fast way to see how much space a folder uses?

View 10 Replies

Word Automation Using VB - Fast Way To Perform Action On Large Number Of Files

Nov 18, 2011

I had tested this code: [URL] It works, but a Word application is opened and each new paragraph added using VB code is seen one by one(with a small delay). If I want to open and write something using VB, what is the fastest way ? I do not want to view the changes made on word document live. I want to save the document. So will oWord.Visible = False makes it fast?

View 1 Replies

How To Make Program Fast

Jun 22, 2010

I m inserting 30 to 50 records .then set table as datasource to report.It takes 5 minutes.Plz anybody tell me how to do it fast.Then my pc is hangedI have also tried adding datarows into datatable instead of inserting records into access database and set datatable to report.but same time cosumed.

View 1 Replies

Reconcile A List Of Files And A Directory With Subfolders/files To Find Changes?

Jun 3, 2010

I have a SQL Server table with a list of files (path + filename), and a folder with multiple layers and files in each layer. I'm looking for a way to reconcile the two without having to process the list twice. Currently, I'm doing this:

For Each f as FileInfo In FileListFromDatabase
If f.Exists is False, mark it as deleted in the database
Next

[Code]....

Is there a better way to do this? I'd like to avoid converting all the matching files (of which most will be) to FileInfo objects twice. Since I'm a T-SQL developer first, I'm picturing something like an OUTER JOIN of the two lists where they don't match. Something LINQ-ish?

View 1 Replies

Search A Folder Of Csv Files To Find Out If One Of The Csv Files Has A Particular Name In ?

Feb 10, 2010

how I can search a folder of csv files to find out if one of the csv files has a particular name in ?I'm currently searching a folder to bring back all csv files using the code below and this is working fine.

[code]...

But now I want to take it a step further and actually search within the files themselves.

View 2 Replies

.net - Why Setupper Created By Publish Feature Does Not Copy Files To C:/PROGRAM FILES

Jun 10, 2009

I have VB project and I tried to use PUBLISH feature.It seems to create nicely some kind of setup program, but the setup program does not ask where to copy files (it does not seem to copy filesto target machine "PROGRAM FILES".)Is this setup program somehow different from usual installers?

NOTE: I want that app files are installed to Hard disk( from USB stick source)Is the signing recommended or necessary? My App is pretty simple, its just using access DB + printer api, should I still sign?

View 2 Replies

Retrieve File Details From Files In The Program Files Folder?

Dec 26, 2009

I am trying to retrieve file details from files in the Program Files folder. I receive an error while trying to retrieve file details.

Dim sFileName As String = ("%ProgramFiles%Windows DefenderMSASCui.exe")
Dim Info As FileVersionInfo
Info = FileVersionInfo.GetVersionInfo(sFileName)
Msgbox(Info.ProductName.ToString())

I receive file not found error at 3rd line. But if I change the path from "%ProgramFiles%Windows DefenderMSASCui.exe" to "c:Program FilesWindows DefenderMSASCui.exe" it works fine.

What should I do if I want to retrieve file details from the path which includes a "%" character?

View 2 Replies

VS 2008 Create New Files Alongside Itself In The Program Files Area?

Jul 30, 2009

Having a slight permission problem with Win 7 I am guessing it will be the same on Vista but work fine on XP (yet to try)But my program is sitting in: C:Program FilesCompanyProgram And its trying to create new files alongside itself in the Program Files area but bombing out which I know is permissions. If I go there to create the file myself it comes up with a UAC prompt and when I hit allow it works fine but obv the program can't do that byiteslf so bombs out.Is there anyway I can over come that without the user having to grant admin rights to the program each time it starts or do I have to write data to another place?

View 4 Replies

File I/O And Registry :: AVI Header - Program To Download And Play AVI Files The Files Are Large In Size And Long Time Wise

Dec 11, 2011

I wrote a program to download and play AVI files the files are large in size and long time wise. I have the files playing as they are being downloaded but i can't see how long the file is or seek reliably. i was reading that the AVI headers are in the last 512kb of the AVI file *why would't they put it at the start* lol so my question is is there a way to download the last 512Kb of the file i'm downloading. i have the Bytes Read and Length of the file while its downlaoding i'm just not sure where to go from there, or how to do it atleast. If i had the length in time of the Avi file i could set the trackbar to be able to seek properly. or if someone has an idea how i could get the time of the video by using fps and some math i could prob do it that way too but idk how i would tell how i can find how many kb are in the fps i'm sure it changes so think that way is't going to be reliable. how to get the last 512kb would be the best option not sure if it can be done even.

View 4 Replies

Find .csv Files In Subdirectories?

Jul 24, 2009

I have come up against another brick wall I have a large number of .csv files which are located within subdirectories of lets say the "c:emp" directory. What I need to do is find all of these csv files, open them individually, perform an operation on each and then close each one.

What I am struggling with is the part where I find all of these csv files. What I would ideally like to do is search through each of the subdirectories, return a filename (including complete path) as a string which I can then use in my code to open the files individually and perform the operations.

View 3 Replies

Find The ID3 Tags In A .mp3 Files?

Apr 29, 2012

This is how I currently find the ID3 Tags in a .mp3 files, but is there a way to do it that doesn't involve Byte arrays?

Private Sub GetID3Tags(ByVal Path As String)
Dim Stream As IO.FileStream
Dim Title(30) As Byte

[Code].....

View 1 Replies

Application Cannot Publish As It Cannot Find Files

Dec 1, 2010

VB.net 2008 build and publish.The application cannot publish as it cannot find the files. I down loaded the MS exe that installs it, but, I need to load them into the same folder as the install package.I looked at the folder: Microsoft SDKs/v6.0Aootstrapper/packages and transferred the folders but they do not contain the files.One of the errors on build is as follows <error> Error32The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35dotNetFX30NetFX30a_x86.msi' in item '.NET Framework 3.5' can not be located on disk. See Help for more information.WindowsApplication1.

View 5 Replies

Communications :: Find Files On Website?

Oct 21, 2008

I want to make a program that scans a website to find an extension (.png), then tells me all of the files with that extension on the server.Which displays them in a list box. so lets say the website is

[URL]

and i need to find the files, but file browsing is off on the server.So I pretty much need a web crawler. How can i do this?

View 3 Replies

Find All Files From A Folder And From All Sub-folders?

Jan 9, 2010

How to find all files from a folder and from all sub-folders?

View 4 Replies

Find Files On Harddisk With Specified Extension?

Oct 26, 2010

Dim ListOfFileTypes() As String
Private Sub ListFiles()
' an array to hold the file types I am searching for

[Code]....

View 1 Replies

Find String In Multiple Files?

Apr 9, 2010

I've created a button and textbox which allows me to do an openfiledialog and select multiple files. The problem is, after selecting multiple files, when I run the program it doesn't run through all files selected, just the first file. I know I'm missing an integral part of code here, but not sure what it is.

For testing purposes I've created similar code and output to a textbox shown below. I would expect that each file selected by multiselect would appear in the textbox provided.

Dim OFD As New OpenFileDialog
OFD.Title = "OFD"
OFD.InitialDirectory = "C:"

[Code]....

View 2 Replies

Good Way To Find Duplicate Files?

Apr 1, 2010

I don't know enough about VB.Net (2008, Express Edition) yet, so I wanted to ask if there were a better way to find files with different names but the same contents, ie. duplicates.In the following code, I use GetFiles() to retrieve all the files in a given directory, and for each file, use MD5 to hash its contents, check if this value already lives in a dictionary: If yes, it's a duplicate and I'll delete it; If not, I add this filename/hashvalue into the dictionary for later:[code]Is this a good way to solve the issue of finding duplicates, or is there a better way I should know about?

View 2 Replies

How To Find Application Data Files

Dec 3, 2010

I'm trying to find a good strategy to access data files, image files, etc., that I want to distribute in my VB.NET deployment. The challenge I'm having is to find a place to put the files, and a means for the program to find them, regardless of whether the program is running in the Visual Studio environment as a debug build or release build, or running as an installed application.I've considered using AppDomain.CurrentDomain.BaseDirectory to find the location of the EXE file, then using relative paths to that folder. However, that approach depends on the directory hierarchy imposed by the Visual Studio tools when it separates the binaries of debug and release builds. Both builds would have to navigate upward to reach a common root folder, and the path traversal algorithm must work for the deployed EXE file too.

View 6 Replies

Setup Cannot Find Some Of Assembly Files?

Mar 15, 2012

Am getting below error, the program cant seem to find some custom dll on my project when installed. in the setup and deployment i check only 'primary output source from myapp'

[Code].....

View 14 Replies

VS 2008 Find Files In Directory?

Jun 10, 2010

I'm making a Cleaner for my PC that could delete all files with a specific name.So I have all the names in a .txt file, like:

A
B
C
D

Now I need somekind of function that would search in a directory ( The user gives the dir. in a textbox ), and its important that it would also search in all sub folders and see if there is a match to any of the names in the .txt file. And it shall not care about in what format the file is. It can be in .exe , .txt or any format.

View 10 Replies

Program Files Are All Mixed Up - In Class Saved Program In With Load Of Other Test Programs For The Same Assignment

Jan 8, 2010

In class i saved my program in with load of other test programs for the same assignment and got everything mixed up i finally figured out what was what and loaded the program in Visual Basic. Now my program doesn't recognize one of my forms when i try to access the design view of it. I hit run for the hell of it and the program runs with errors of course but the form1 "the missing one" shows up with all the buttons etc and i can use it.

Heres the link to the files. [URL]

View 3 Replies

DB/Reporting :: Database - Access Denied To A Text File (since It's Stored In The Program Directory In The Program Files)

Sep 20, 2010

I have a program where a lot of the required information for it is stored in text files. I simply read this information into large arrays. However, I don't think it's necessary to load all the information each time. Rather, it would be more efficient if I could simply search through a list of items to find the one I need and then use the data from it, or to find a similar name and use it elsewhere.

Would I be right in using a database? And is database programming done in SQL? I have a book on it telling me to use the SQL Server (IIRC), so I shouldn't be doing it in the VB.NET Express GUI?

Here's an example of what I would do:

Hex = 03 00 => dex number 003
Search in file Pokemon Dex Numbers
003 returns Bulbasaur
Check Bulbasaur base stats in the base stats file
etc

So basically I'm reusing a lot of information. I think a database would be best and it would all be internal right? I'm getting complaints about access denied to a text file (since it's stored in the program directory in the program files).

So to cap up the few questions I have:

-Databases are done in SQL and not inside the GUI?
-Databases would load internally?
-I could search a database without having to load it into like an array or something?

View 2 Replies

Find All Files On The Entire C: Drive With Linq?

Jun 29, 2011

I need to mdify the code below to capture all files in all directories and write them to a grid

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

get files from current directory

Dim Files = From file In My.Computer.FileSystem.GetFiles(CurDir)

[Code]...

View 7 Replies

Find A Control To Upload Big Files To A FTP Server?

Apr 3, 2012

I need to find a good control for VB.Net to upload big files to an FTP server:

Can upload files up to 10GB
Uses passive mode
Provides feedback during upload, to make sure it's going OK
Can cancel and resume
Up to two concurrent connections

I read about WebClient + NetworkCredential, but it doesn't seem to provide progress infos. There are also the FTPWebRequest/FTPWebResponse classes from WebRequest/WebResponse, as well as WebClient.UploadFileAsync.

View 1 Replies

Find And Replace Text In Multiple Files?

May 12, 2012

I am attempting to make a text editor. I have a folder which contains hundreds of text files. I would like to search through all files simultaneously, for some text then replace the text with other text & save, & overwrite originals. I've got most of the basic structure done, but I've go no idea how to search for text in all files in a folder.

View 13 Replies

Find Out Exactly Which Files / Folder Will Need To Copy Over For Deployment?

May 16, 2011

I (through a ton of help from everyone here at stack-o) have created a small WCF which is hosted as a Windows service using TCP..Last question for this little bugger; it's time for deployment. In my solution, there are 3 projects. One is the Windows service, another is the imported WCF, and finally a setup project I added for install.I can install/uninstall the service on my machine by going in the solution directory and finding "Setup.exe" or "Setup.msi". Executing either from explorer will install the service on my development box.Now there are a few directories associated with this solution. I'm betting that simply copying setup.exe or setup.msi to my target server and trying to run it will bomb out. How can I find out exactly which files/folder I will need to copy over for deployment?Or should I just copy the entire solution directory? That will be a little difficult for my coworkers as the setup routines are nested in directories 5 deep.

View 3 Replies

Find VB Resources Like Sounds, Graphics & Other Files?

Nov 5, 2011

where can I find VB resources, like graphics, sounds, & other related files?

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved