Subject: | |
From: | |
Reply To: | |
Date: | Mon, 11 Oct 2004 11:32:46 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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 *
|
|
|