i dont know much about ws_ftp server but you can
Use vb script, here's a small sample of
something we do at work, the script file can scheduled to run at differant
times,
create the FSO and the data log
file, deleting it if it exists already
Set objFS = WScript.CreateObject("Scripting.FileSystemObject")
If objFS.FileExists("\\rapid_nt3\reporting\weblogs\weblogs_data.txt") Then
objFS.DeleteFile "\\rapid_nt3\reporting\weblogs\weblogs_data.txt"
End If
Set objDataText = objFS.OpenTextFile("\\rapid_nt3\reporting\weblogs\weblogs_data.txt", FOR_WRITING, CREATE)
Set objFS = WScript.CreateObject("Scripting.FileSystemObject")
If objFS.FileExists("\\rapid_nt3\reporting\weblogs\weblogs_data.txt") Then
objFS.DeleteFile "\\rapid_nt3\reporting\weblogs\weblogs_data.txt"
End If
Set objDataText = objFS.OpenTextFile("\\rapid_nt3\reporting\weblogs\weblogs_data.txt", FOR_WRITING, CREATE)
' create the local folder
if it doesn't exist
If Not objFS.FolderExists("\\rapid_nt3\reporting\weblogs\ttexweb" & x) Then
objFS.CreateFolder "\\rapid_nt3\reporting\weblogs\ttexweb" & x
End If
If Not objFS.FolderExists("\\rapid_nt3\reporting\weblogs\ttexweb" & x) Then
objFS.CreateFolder "\\rapid_nt3\reporting\weblogs\ttexweb" & x
End If
' copy the log files from
\\Build-pc\weblogs otherwise display an
error message if it doesn't exist
If objFS.FileExists("\\Build-pc\weblogs\TTEXWEB" & x & "-ex" & sDate & ".log") Then
objFS.CopyFile "\\Build-pc\weblogs\TTEXWEB" & x & "-ex" & sDate & ".log", "\\rapid_nt3\reporting\weblogs\ttexweb" & x & "\ex" & sDate & ".log", OVERWRITE
Else
MsgBox "TTEXWEB" & x & "-ex" & sDate & ".log was missing from \\Build-pc\weblogs"
End If
If objFS.FileExists("\\Build-pc\weblogs\TTEXWEB" & x & "-ex" & sDate & ".log") Then
objFS.CopyFile "\\Build-pc\weblogs\TTEXWEB" & x & "-ex" & sDate & ".log", "\\rapid_nt3\reporting\weblogs\ttexweb" & x & "\ex" & sDate & ".log", OVERWRITE
Else
MsgBox "TTEXWEB" & x & "-ex" & sDate & ".log was missing from \\Build-pc\weblogs"
End If
' copy the log file
from the local machine back to the build PC (for archiving), then delete the
local copy and the downloaded copy
'objFS.DeleteFile "\\Build-pc\weblogs\TTEXWEB" & x & "-ex" & sDate & ".log"
End If
'objFS.DeleteFile "\\Build-pc\weblogs\TTEXWEB" & x & "-ex" & sDate & ".log"
End If
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Anandram, Venkatesh
Sent: 16 June 2003 17:20
To: 'WS_FTP User Forum'
Subject: [WS_FTP Forum] Moving files after successful upload to serverHello,
I am using WS_FTP server 4.0 at work. We have clients sending files securely to our server using WS_FTP pro. After the files are successfully uploaded to the server, I am trying to set up rules, so that the files are transferred to another location on our network.I have tried many things, but cannot get it to work. Any ideas or suggestions are appreciated. Even better with an example.
Thanks.
VAnandram
[EMAIL PROTECTED]
