Re: rename (General questions)
Hi ,
Probably RemotePath Property changed from /home/act after you call PutFile Method to /home/act/aa.txt and your code isn't working.
You can try on this way:
-------------------------------------------------------
Set dlx1 = New wodFtpDLXCom
Dim a As String
dlx1.HostName = your_server_name
dlx1.Login = your_login
dlx1.Password = your_password
dlx1.Blocking = True
dlx1.Connect
a = dlx1.RemotePath
dlx1.PutFile c:\aa.txt , a & /aa.txt
dlx1.Rename a & /bb.txt , a & /aa.txt
-------------------------------------------------------
Or you can try to use full path, without using RemotePath Property:
-------------------------------------------------------
Set dlx1 = New wodFtpDLXCom
dlx1.HostName = your_server_name
dlx1.Login = your_login
dlx1.Password = your_password
dlx1.Blocking = True
dlx1.Connect
dlx1.PutFile c:\aa.txt , /home/act/aa.txt
dlx1.Rename /home/act/bb.txt , /home/act/aa.txt
-------------------------------------------------------
More help for RemotePath Property you can find here:
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~RemotePath.html
Let us know how it goes.
Regards,
Drazen
Complete thread:
- rename - ssteam, 2006-10-16, 15:10
- Re: rename - wodDrazen, 2006-10-16, 15:54
- Re: rename - ssteam, 2006-10-17, 05:10
- Re: rename - wodDrazen, 2006-10-16, 15:54