Check if a file is loaded from harddisk

atmoz
05-26-2003, 07:51 AM
Hi people,

(Sorry for the bad English, but I'm Dutch).

A few days ago I started programming with VB6. Now I have a little question about it. I want to make a program that looks if a file on my HD is been loaded. If the file is loaded, a MsgBox with: "File loaded" must come up. I hope that you understand my question. And I also hope that someone can help me... ;)

Thanx in advance,
Atmoz

Gamer256
05-26-2003, 07:59 AM
Darn, another Dutchman...

What do you mean by loaded, should your program load the file? And what should it load from it?

---

atmoz
05-26-2003, 08:04 AM
No, the program must look at the file. And if I open the file with explorer, then the program must give a MsgBox. I'm sorry for the mis-understanding...

On the internet I have read something about "DateLastAccessed ___ Date and time the file was last accessed."

So if the file is accessed (because I opened it in explorer) then the program must see it.

atmoz
05-28-2003, 04:38 AM
If I use the DateLastAccessed command, then I only get the Date, and not the specefic time of lastaccess. So I only can check for lastaccess once per day. Anyone know how to solve this problem?

I get this MsgBox form it:

http://members.home.nl/asd/vblastaccessed.jpg

Zoidberg
06-04-2003, 11:17 PM
The API GetFileTime will give you the exact time down to a millisecond.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum