bobdylan75
asked on
waiting for file creation
Hi,
I've to waiting for a file in a directory.
I explain better:
my program has to waiting that a file will be created in a directory,
so my program have to continue.
How can I do it in Vb.net without Timer object?
and without the code below witch fill all the CPU?
I've to waiting for a file in a directory.
I explain better:
my program has to waiting that a file will be created in a directory,
so my program have to continue.
How can I do it in Vb.net without Timer object?
and without the code below witch fill all the CPU?
filename=dir(path)
while filename<>""
filename=dir()
end while
ASKER
VB.NET..
if you read slowly, you note that in the 2nd line from the bottom..
I wrote "how can I do it in Vb.net"
;-)
thanks
if you read slowly, you note that in the 2nd line from the bottom..
I wrote "how can I do it in Vb.net"
;-)
thanks
Haha...gotcha. =)
You're looking for the FileSystemWatcher component then:
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx
You're looking for the FileSystemWatcher component then:
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx
Here is an image of it in the ToolBox: http://www.beansoftware.com/NET-Tutorials/Images/Windows-Services-Toolbox.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow! Very interesting! thank you very much
You using classic VB6 (or below) or VB.Net? (you have multiple zones selected)