# 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://<username>:<password>@<hostname>:<port>/<remote_path>

# Optional: Disable confirmation prompts
option confirm off

# Change local directory (replace <local_path> with your local folder path)
lcd <local_path>

# 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 both

# Exit WinSCP
exit