HP3000-L Archives

October 2004, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Thu, 7 Oct 2004 13:41:01 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
Other than having a Reflections session permanently logged on, I don't
think the HP can directly start a program on your server.  (Others may
prove me wrong on this).

But, you can write a VB.Net (or C#) program that will wait for a file to be
created in a folder on your server.  At that point the VB program
would "wake up" and process the file.  VB allows you to program a "file
created" event into your program so that cpu is not eaten up.

sub add_file_watch
  Dim watchfolder As New IO.FileSystemWatcher

  watchfolder.Path = "c:\nbxtract"
  watchfolder.NotifyFilter = NotifyFilters.FileName
  AddHandler watchfolder.Created, AddressOf process_file
  watchfolder.EnableRaisingEvents = True
  watchfolder.WaitForChanged(WatcherChangeTypes.Created)
end sub

sub process_file
 ...do your file processing
end sub

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2