Re: listener - WeOnlyDo Discussion board

Re: listener (General questions)

by wodDrazen, Friday, October 13, 2006, 23:52 (6615 days ago) @ havey

Hi Havey,


Maybe I have solution for you.
You can make VBS script and place it in Scheduled Tasks (in Windows Control Panel) and run VSB script every for example 5 minutes.

VBS script will connect to your server and download and delete files.

Here is example:
-------------------------------
Option Explicit
Dim objFTP, lst
Set objFTP = WScript.CreateObject( WeOnlyDo.wodSFTPCom.1 , wod_ )

objFTP.Hostname = your_server_name
objFTP.Login = your_login
objFTP.Password = your_password
objFTP.Blocking = 1
objFTP.Connect

objFtp.GetFiles c:weonlydo , /home/something/weonlydo
objFtp.DeleteFiles /home/something/weonlydo

objFTP.Disconnect

Sub wod_Disconnected()
WScript.Echo Done and Disconnected
End Sub
-------------------------------

More help how to configure Scheduled Tasks you can find here:

http://support.microsoft.com/kb/308569

I make it run every five minutes and it works like a charm.


Hope this helps.


Regards,
Drazen


Complete thread: