# Connect to the FTP server
# Protocol can be ftp, sftp, scp, etc.
# Replace <username>, <password>, <hostname>, and <remote_path> with your actual details
open ftp://irsukal@isekolah.my.id:6in84bvnh1@isekolah.my.id:21/myWebhook/soal -passive=on

# Optional: Disable confirmation prompts
option confirm off

# Change local directory (replace <local_path> with your local folder path)
lcd C:\upload_soal\soal

# Change remote directory (if not specified in the 'open' command)
# cd /<remote_path>

# Synchronize files: 
# 'both' synchronizes reciprocally (default)
# 'local' applies remote changes to local directory
# 'remote' applies local changes to remote directory
synchronize local -delete

# Exit WinSCP
exit