How to Monitor a folder and write log to a .txt file?

G

Guest

Hi, Friends:
I am trying to write a vb/vba program to monitor an important folder, the
program will take down userid who change the file, create file... filename,
time into a .txt file. I consulted previous postings, however, all of them
are about how to monitor the change on a table/database.
Anybody can give me some suggestions?

Thank you in advance for your help!!!!!!!!!!!!!!!!!!

Pascal
 
S

Stefan Hoffmann

hi Pascal,

Pascal.H said:
I am trying to write a vb/vba program to monitor an important folder, the
program will take down userid who change the file, create file... filename,
time into a .txt file.
Why do you want to do this in VBA?

You have to options:

Poll the directory or implement an API function how monitors your folder.



mfG
--> stefan <--
 
G

Guest

Hi, Stefan:
thank you!
But I do not know how to poll the directory, or how to implement the API. Do
you have sample code, or general procedures?

Pascal
 
S

Stefan Hoffmann

hi Pascal,

Pascal.H said:
But I do not know how to poll the directory, or how to implement the API. Do
you have sample code, or general procedures?
Both are quite complex methods. So why do you want to do this?


mfG
--> stefan <--
 
G

Guest

Hi, Stefan:
It has part of auditing purpose. I need to monitor activities in that folder
so that I can keep track of what happen if some events/malfunctions happen.
The folder contains important data which feeds our application, an Access VBA
application. So, my first thought is if we can do it in VB/VBA. However, I
will also consider other languages if they are easier to do so, but I need to
know the methods.

Thank you

Pascal
 
S

Stefan Hoffmann

hi Pascal,

Pascal.H said:
It has part of auditing purpose. I need to monitor activities in that folder
so that I can keep track of what happen if some events/malfunctions happen.
The folder contains important data which feeds our application, an Access VBA
application. So, my first thought is if we can do it in VB/VBA. However, I
will also consider other languages if they are easier to do so, but I need to
know the methods.
Take a look at

http://www.mvps.org/access/modules/mdl0053.htm


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top