Here is the XML of my event.
I want to FTP any file that gets put into the filter folder to the remote server in the script:
<TriggerDataSet xmlns="
http://tempuri.org/TriggerDataSet.xsd"> <ProcessConfig>
<ProcessConfigID>0</ProcessConfigID>
<MaxProcesses>10</MaxProcesses>
<RunTimeout>0</RunTimeout>
<QueueTimeout>0</QueueTimeout>
<KillOnExit>true</KillOnExit>
</ProcessConfig>
<ProcessRule>
<ProcessRuleID>1</ProcessRuleID>
<ProcessConfigID>0</ProcessConfigID>
<Name>First Test</Name>
<Enabled>true</Enabled>
<ProcessType>3</ProcessType>
<WorkingDirectory />
<Arguments>set remotehost=68.71.245.90
set user=xxxxxx
set password=xxxxx
set protocol=ftp
# connect to the server
open
# upload the file for which the trigger occurred to the server
put %WindowsPath% /promos/%FileName%
# disconnect
close</Arguments>
<PathFilter>S:\Inbox\Teachers_Guides\*</PathFilter>
<OnError>false</OnError>
<OnSuccess>true</OnSuccess>
</ProcessRule>
<ProcessEvent>
<ProcessRuleID>1</ProcessRuleID>
<EventType>UploadFile</EventType>
</ProcessEvent>
</TriggerDataSet>