# Connect to the FTP server using a stored session profile open ftp://irsukal@isekolah.my.id:6in84bvnh1@isekolah.my.id:21/ # Synchronize local directory with remote directory # The 'remote' direction applies changes from the local path to the remote path # The '-delete' option ensures files not in the source are deleted in the destination # get -delete C:\upload_soal\soal\ /myWebhook/soal get C:\upload_soal\soal /myWebhook/soal/ # Alternative for downloading and deleting from source: # synchronize local -delete C:\local\path\ /remote/path/ # Disconnect from the server close # Exit WinSCP script exit