HP3000-L Archives

October 2004, Week 2

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:
Mosalie Rignon <[log in to unmask]>
Reply To:
Mosalie Rignon <[log in to unmask]>
Date:
Mon, 11 Oct 2004 11:32:46 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (53 lines)
 Come on Mark,
writing th etest file is no pb.

Having a vbscript spy on a folder all day every day (without consuming CPU)
waiting for a file to be created in it. That 's the challenge.
Then using the file creation to trigger another action.
Apparently VBA can do that and C.
But vbscript ????

I can get the Windows task scheduler to run a vbscript that will look once
in a folder and see if a flag file is there , or not and execute an action
if the file is there.

TIA

Mosalie







"Mark Wonsil" <[log in to unmask]> a écrit dans le message de
news:IbudnZkJQbzhRvTcRVn-pQ@fidnet.com...
> >>> 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.
> >>
> >
> > Thanks do you know if I can do that with VB script ?
>
> http://www.winguides.com/scripting/reference.php?id=150
>
> 'VBScript Example
> 'create file system object
> Set fs = CreateObject("Scripting.FileSystemObject")
>
> 'create a new text file
> Set TestFile = fs.CreateTextFile("c:\testfile.txt", True)
>
> 'write a line into the test file
> TestFile.WriteLine("This is a test.")
>
> 'delete the test file
> TestFile.Delete
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>

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

ATOM RSS1 RSS2