WatchDirectory...for cashregister print
I have four computer conected in a network .... running a mini POS in VB6 ... but only one computer(Server) have a cashregister connected (serial port).
I need that other computer print to cashregister.
....
So i think the best ideea is to create a "Folder monitor" on Server and then send file from other computer from network to that folder.
I found a sample here :
http://www.mvps.org/vbvision/_sample...ctory_Demo.zip
The problem is that:
- I want to modify the sample so the event notification appear only when the file terminate to write on server monitor ( to avoid run cashregister exe application when file is incomplet write to disk....delay appear because of network transfer)
--------------------------------
1. File start to write in disk (BonFile) - NO EVENT
2. File Write (BonFile) - NO EVENT
3. File terminate write (BonFile) - EVENT NOTIFICATION -----> Run Cashregister EXE
4. Shell and wait for execute Cashregister EXE
5. Delete file (BonFile)
6. Loop
--------------------------------
Sorry for my english...
Hope understand me.
Re: WatchDirectory...for cashregister print
see
http://www.vbforums.com/showthread.p...monitor+folder
this only monitors for changes to subfolders, but that can be changed