o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Check log file -

I need to check a txt file for a certain value and if that value is found to write to result to a txt file. The tricky part is that it is a on going log file and the entry would be in there from the previous day.

For instance here is a copy of part of the log
08/10/05 01:36:14 Finished process: co/co28-r.p
08/10/05 03:30:14 Started process: mrp/mrp-gen.p
08/10/05 06:23:40 Finished process: mrp/mrp-gen.p
08/11/05 01:36:14 Finished process: co/co28-r.p
08/11/05 03:30:14 Started process: mrp/mrp-gen.p
08/11/05 06:23:40 Finished process: mrp/mrp-gen.p

Ok now I want to check for
Finished process: mrp/mrp-gen.p
but ignore any entry that is older then 2 hrs ( this doesn't have to be a set time the goal is to ignore any previous entry from the last time it was checked and I figured using the 2hr solution would work or something based on date)
and when it finds it write Finished to a text file

 

File check/install -
How do i create an app that check if a certain file exist in the computer? If the file exist, the app moves on to check for the next file. If the file don't the app shell a website for the user to download the missing file. The list of files the app searches for should be in an extenal


Check for new file (Date) -
Hi group, I need to check a dir with 2 files. The name of the files are always the same: File1.xls File2.xls I need to check if there is a newer version of the file, so if the file was replaced. How can i check if a new file was put in the dir? How can I check the creation d


When a Text File has been updated.... -
I need to come up with a way to detect when a file has been changed or updated. I figure the best way to check that would be by the file modified date. I know how to get this using FSO, there may be a better way, if so let me know. The file is basically used to upload or modify a ta


Check for portion of file exist -
Hello everyone, I would like to check if a file exists. I know the file name I want to check. Normally the system.io.file.exist(filename) would give me this info. However my issue is the the file I need to check is prepended with a number (from our process). I only know the file


Check a file for no records -
I am creating multiple reports from a parsed text file. When I am done processing, I wish to check the last report file for any records. If no records exist, I wish to Kill the file. How can I check for the existence of records when the file is closed?


Check validity of file name/file path -
Are there any functions within the Win32 API that I can call that will tell me whether or not a path or file name is in the valid format? I want to be clear that I'm not asking to check for the existence of a file or path on the current computer, I'm specifically asking to check t


check for changes -
i have a rich text box, and i want that if it has a text file loaded, when i click a command button (to clear the text box for a new file), i want to check if the file which was loaded was change and if yes, it will ask whether to save the file or not ... how do i check whether a file


Check to see if network file is already open -
I need help locating a piece of VB code that will run and check to see if a file on the network is already opened by another user. If possible, would like for it to report back a USERNAME of the person whom has the file open. More importantly, just to check to see if the file is open


check file format of a file -
Hi how to check the file format of a file? For example if we have a .doc file how can we check whether it is a document other than checking the extension (as it can be renamed.) let me know. thanks


Check file Existence ! -
Hello ! I want to check weather a file exist or not in the hard drive in the given path. I have decided to use FSO to determine the file existence. Is it ok to use FSO? or Is there any particular API to check a files existence? Looking forward to the answer.


File check -
I was wondering how i would accomplish searching a specific folder for files with the file names i have listed in a text file. For example. Lets say i have a text file with a set of numbers like so.... 121100 121101 121102 121103 121104 121105 121106 121107 And in a fo


Check whether the file is writing or ... -
guys, how to check a file whether its complete or not? i mean i would like to ensure that the file is finished saving before i load it... (its a picture file) how can i go about it?


File exist -
What code do I use to check if a file exists, and to check that the file is not a blank file (e.g. 0kb in size)? Cheers


How to check file size in vb6 -
I need to check the size of a file in VB6. I know that FileLen("file path") is used as a command, however, I dont know the exact syntax and method of using it. I have an event in which I want to check if the size of a certain file is greater than 0, and then I want to perf


Menu Check Options -
I am having difficulty setting the menu option clicks to change checks. For example i am trying to make a program that when you click one menu option the check mark goes from that option to another option. so lets say you had file check visible and you clicked open it would make file


[2005] check box wrapper -
I would say nice things about anyone who has a check box wrapper allowing me to place a red check box if something is wrong and a green if its right. basically, i'm testing for errors in a file. 4 areas are tested. if a test passes the check box is green. if it fails the box gets n


How can I check if a file exist -
Hi! A textfile is created with a batchfile. I have to analyze this textfile, when it's there. Now how can I check if the textfile is already there? How can i delete it fast after checking? And biggest question: How can I tell the programm to WAIT until there is a file to check


Check if a file is in use VB6 -
I need a way to check if a file is in use or not by another application. at the moment I am using: Code: oFile.Move (oFile.Path) If Err = 70 Then 'the file is in use Else 'the file is not in use End if This works but it is slow. Basically it tries to cut and paste the file


check and see if file and reg entries exsist -
Hello All, I have a text file which contains a few hundred file paths in it. All it is, is the paths. I was wondering how I would go through the whole file and check to see if each file exsists. If the file does then i would like to write the file path to a different text file.


[resolved]Check for a specific OCX -
When my program starts, I would like for it to check for an OCX file, particularly MSWINSCK.OCX. If the user's computer does not have the file, I would like for it to create the file, which I have stored in a resource. Otherwise, it should go about its business. I hope what I'm saying


add a delay in asp script -
I'm trying to check if a file exits. I want to do this every 10 seconds. I have a dll that will check if the file exists, all I need to know is how to wait 10 seconds and then check again. Is there a way to do this?


[2.0] Possible Determine if a windows-related event triggered -- then do something -
Here's the situation: I have a log file that I want to monitor. This log file will get updated based on certain events that happen within the program that writes the file (this program isn't written by me). What I want to do is, if that log file gets updated (a new line is added)


check if file transfer is ongoing or not -
Hi ! any sample code that will check if file tansfer is ongoing or not, succesful/unsuccessful? a person would initiate an FTP command and send a file to my shared folder, then my app will monitor if the file is completely transferred or not and successful or not. TIA.


can I get the time a text file was created -
I am writing a shop floor system and need to retrieve a text file every two hours from the NT server. In my program I would like to get the file and check the files time creation. This file called reeldata is created every two hours and the old file is overwritten with the new one. My


Check if file empty -
Hi Can anyone tell me how I check if there is nothing in a file. For example, I am checking one input file for information and outputting the formatted info to a new output file. The output file is created at the start ie. Open testFile for output as #2 I just need to check i


About text manipulation in VB with excel -
Hi, My problem is, I want to open a text file through VB (text unformatted text file), read line by line with necessary criteria. what i have done is, since text file is not formatted, i choose excel to open a text file and i will set the necessary formats. but still i am getti


Simle check -
Hi I am trying to check usrID and password againt to the MDB file. Is it possible to check with Data control?.Please post example code if you have. Regards.


check if file exists -
how do I make an app check if a file on the net exists? If it does, I need to also check when the file online was uploaded. How do I do this?


[2005] how can i check the hyperlink in PDF files -
Hello all, i have a PDF file in that i have some hyperlinks i want to check the hyperlinks that tey are nevigated correctly or not? can i check it by using .Net 2.0 if yes then please give me Link/Code/hint can i write macro in pdf file ?????? please help.... thankx


Continuously check registry or file input -
I need to watch for a change in a file’s content, a file’s date, or a registry entry. I haven’t done much programming with the registry. I need to continuously check for a change. I'm wondering, if I was to continuously check a registry key value would that cause a slow dow


check for PC on LAN... -
can I check for a PC on a LAN? I use this right now If Dir("\\pcname\drive\etc",vbnormal) = "" then to check if a file is there. (Auto update feature) if the server is down...it takes a LONG time to test that...is there a faster way to check ?? thanks


Check if file is opened -
Hi I would like to check if a file is opened. If the file is opened i want to stop the program that is going to open the file and download a new version of the file then let the program open it. Kinda like a antivirus-program works. I could solve it by downloading this file ever


How to add check boxes with flexgrid -
Hi all I have a flex grid, in that I load a Excel file data, now my problem is, I want to add check boxes according to columns. means if there are 20 columns then check boxes should be 20 at every column's top. counting of columns can be changed, according to excel file, and the nam


URL File Exists Check -
I have searched everywhere to try and find a way to check if a file exist that is on another webserver. example i want to check if "http://www.google.com/intl/en/about.html" exists or not. I tried using IO.File.Exists("http://www.google.com/intl/en/about.html") but


[2008] Checking for Dependencies -
Hello again, going at it here this morning lol. My program needs to ensure that a few things are on the computer in order for it to run. Now I know I could do them with the installer but I would rather do them in the splash screen while the app is loading up to ensure that nothing h


how to check if file is still open -
i have a file open for writing to... i want to check if the file is still open before the users quits the app... is there code to check for that?


fint the height of a file before the upload -
I give user the option to upload a file to my site. The weight limit is 750KB. I want the JavaScript code check before the upload if the weight of the file is OK (small than 750KB). I found a way to check picture files, but when the user upload music Or movie file the check don


How to simply check if a file is locked by ANOTHER application -
Hi, Is there a quick way in VB to check if a file is locked by a different application? I need to throw a file "over the wall" to another app that does not handle things gracefully if the file is locked in any way, even for read access. So, before I throw it over the wa


check whether file exists -
How to check whether a file exists or not provided with the file path? dir will check whether a folder exists or not but how about file?


How to check if file exists -
How do i check a specific Dir to see if a file exists, for ex. i have this, If Dir("app.txt", vbNormal) <> vbNullString Then MsgBox "File Exists." but i want to check in c:\windows for the file existing ?