I wanna set up scriptFTP to watch a certain directory and once a certain type of file gets place, it auto connect to my ftp and upload it there. Im not very good at this hence why im asking.
Hello,
You will have to use a short script something like:
HTH.
Zythan
You will have to use a short script something like:
Code: Select all
In the 'push.bat' you should setup a script to run from the command line.; ------------------------------------------
; This is a command line batch file, not a ScriptFTP script
; ------------------------------------------
Option Explicit
'Set Dimension
DIM fso
'Set Objects
Set fso = CreateObject("Scripting.FileSystemObject")
Set WshShell = WScript.CreateObject("WScript.Shell")
'Create Condition
If (fso.FileExists("C:\Temp\test.txt")) Then
'Run
WshShell.Run "C:\ftpscripts\push.bat"
Else
'Nothing
End If
'Exit Script
WScript.Quit()
HTH.
Zythan