Results 1 to 2 of 2

Thread: WatchDirectory...for cashregister print

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Craiova, Romania
    Posts
    140

    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.
    Last edited by cliv; Nov 8th, 2010 at 05:30 AM.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width