Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for ActiveX SSH or SFTP
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01132875
Message ID:
01134274
Views:
21
Hi Patrick,

Few lines, that can help
ObjFTPSSH=Createobject("WeOnlyDo.wodFtpDLXCom.1")
*ObjFTPSSH.LicenseKey="S6MH-CAM4-ZS7V-LBRR" && Component Setup should also have same key installation to run this line of code (TRIAL VERSION DONT NEED THIS LINE)
ObjFTPSSH.HostName = <<UR IP ADDRESS / HOST NAME>>
ObjFTPSSH.Login = <<USERNAME>>
ObjFTPSSH.Password = <<PASSWORD>>
ObjFTPSSH.Port = 22
ObjFTPSSH.Blocking=.F. && A Boolean value.  When set to True forces wodFtpDLX to execute methods in blocking manner - waits until method completes
ObjFTPSSH.Protocol=1 && FTP 0 FTP protocol. | SFTP 1 SFTP protocol. | FTPSnodata 2 FTP+SSL protocol with insecured data channel. | FTPSwithdata 3 FTP+SSL protocol with secured data channel. |	  FTPSimplicit 4 FTP+SSL implicit on port 990.
ObjFTPSSH.Timeout = 60 &&An Integer value.  Specifies number of seconds before user will be disconnected.
ObjFTPSSH.Connect
>This is the code I wrote:
>
>	ObjWOD = CreateObject( "WeOnlyDo.wodSFTPCom.1")
>	WITH ObjWOD
>		.HostName = mv_host
>		.Login = mv_usr
>		.Password = mv_pwd
>		.Blocking = 1
>		mv_con = .Connect
>		mv_lstdir = .ListDir("/")
>		.Disconnect
>	ENDWITH
>
>Variables mv_con and mv_lstdir are both showing null, so I am not connecting.
>
>I'm probably missing something simple, but I based my code on what I read in a VB example. Can you show an example of code you use in VFP?
>
>Thank you.
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform