<< back to sysax.com Product page

4.5. Active and Passive modes

The DisablePASV method can be used to turn off PASV mode file transfers and use PORT mode for transferring files. The EnablePASV method can be used to turn on PASV mode file transfers. This only applies for FTP, or FTPS based file transfers that make use of seperate control and data connections.

Exhibit 4.9. IDL Definition of method for active and passive modes


HRESULT DisablePASV ();
HRESULT EnablePASV  ();


Exhibit 4.10. Example usage of method for active and passive modes (VBScript)


'disable passive mode (PORT mode enabled)
app.DisablePASV

'enable passive mode (PORT mode disabled) 
app.EnablePASV