|
Thread: Yip
-
Nov 23rd, 2006, 07:07 PM
#1
Thread Starter
Fanatic Member
Yip
Hi guys sorry its me again but i am completley stumpped
i wrote this program which parses a server log for data then works on the resulting data.
this whole thing was based on the server log being replaced once a week so once a week i would manually update the log with new file name.
just found an instance when the log could be updated with a new log maybe 10x in 1 hour is there any simple way to check if a new log exists they allways run sequencually 000001, 000002 and so on i want to keep it simple if possible as i am ready to run this thing.
thanks in advance oh btw download is via ftp i would presume this to be relavent i have looked on the forum but all i can see is exe updats based on file version.
-
Nov 23rd, 2006, 07:52 PM
#2
Fanatic Member
Re: Yip
I think the best way is check by date.
Then store the last date after checking to the database, textfile, or etc.
-
Nov 24th, 2006, 02:56 AM
#3
Thread Starter
Fanatic Member
Re: Yip
ok found some code that might work but how to use it on a remote file via ftp?
Dim lFso As Object, lf As Object
Set lFso = CreateObject("Scripting.FileSystemObject")
Set lf = lFso.GetFile("C:\test.log") 'Any sort of file
MsgBox "Date Last Modified: " & lf.DateLastModified
MsgBox "Date Last Accessed: " & lf.DateLastAccessed
MsgBox "Date Created: " & lf.DateCreated
Set lf = Nothing
Set lFso = Nothing
-
Nov 24th, 2006, 12:10 PM
#4
Thread Starter
Fanatic Member
-
Nov 25th, 2006, 04:45 AM
#5
Fanatic Member
Re: Yip
I'm sorry but I haven't tried FTP.
Try this one.
I hope this may help you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|