Page 1 of 1
FTP change directory
Posted: Thu Mar 27, 2008 8:14 pm
by Wingate
Love the product. Especially for scheduled FTP calls. I have a new hosting company with files 1 folder level below the FTP root. I cannot get the change folder command to work. What's the correct syntax for doing this? I know this folder exists and contains the files i seek.
Ive tried
ftp.icebpregistry.com/_database
AND
/_database
Neither of them work
Many thanks ahead of time
jhh
FTP change directory
Posted: Fri Mar 28, 2008 1:58 am
by Oleg
The correct syntax is
/_database
Maybe there are some settings of the folder (access rights or some else).
BTW, what error messages did you get?
Try the little test (just change the server and authentication parameters). It's working on our FTP.
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|314989959
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task587"
Hide=INTEGER|0
ID=INTEGER|664675651
Name=STRING|"change folder"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
[Actions\Action1]
ActionID=STRING|"A_FTP_LOGON"
Enabled=INTEGER|-1
Name=STRING|"FTP Log On"
Params=FOLDER
[Actions\Action1\Params]
anonymous=STRING|"1"
host=STRING|"oleg"
passive=STRING|"0"
password=STRING|"4231738316406194034628830408604112640602242 423831112461"
port=STRING|"21"
username=STRING|"anonymous"
[Actions\Action2]
ActionID=STRING|"A_FTP_PWD"
Enabled=INTEGER|-1
Name=STRING|"FTP PWD"
Params=FOLDER
[Actions\Action2\Params]
assign=STRING|"0"
[Actions\Action3]
ActionID=STRING|"A_FTP_CHANGEFOLDER"
Enabled=INTEGER|-1
Name=STRING|"FTP Change Folder"
Params=FOLDER
[Actions\Action3\Params]
folder=STRING|"/_database"
[Actions\Action4]
ActionID=STRING|"A_FTP_PWD"
Enabled=INTEGER|-1
Name=STRING|"FTP PWD"
Params=FOLDER
[Actions\Action4\Params]
assign=STRING|"0"
FTP change directory
Posted: Fri Mar 28, 2008 3:42 am
by Wingate
thanks oleg
i'll giver it a try
FTP change directory
Posted: Fri Mar 28, 2008 4:06 am
by Wingate
Many thanks for the help Oleg
per your instructions i imported your task and changed the server & authentication stuff.
Still doesnt work.... here's the error
E: 3/28/2008 8:01:00 AM: FtpSetCurrentDirectory fails with message: 550 /_database: The system cannot find the file specified. ,
FTP change directory
Posted: Fri Mar 28, 2008 4:27 am
by Oleg
Are you sure that folder name is correct?
This error means that the folder doesn't exist or maybe you have no rights to enter into this folder.
FTP change directory
Posted: Sat Mar 29, 2008 7:31 am
by Wingate
Folder name is correct. I can see and transfer the files with my windows explorer.
I entered my login & password During the first step FTPlogin task. In your example why is your step # 2 FTP password before step #3 FTP change folder?
FTP change directory
Posted: Sat Mar 29, 2008 8:41 am
by Oleg
"FTP PWD" - it's not a password. PWD - Print working directory on remote machine. It is the exact name of FTP command.
Maybe your FTP server is case sensitive. In this case the names _database, _DataBase, _Database are different names. Check this please.
FTP change directory
Posted: Mon Mar 31, 2008 5:56 am
by Oleg
Thank you for access to your FTP server.
See log file of my example more carefully.
When you login into your FTP account you are not in ROOT folder (/) you are in folder "/<UserName>" (e.g. your private root folder)
From root folder you can't see any file and folders, but you can come in only into "/<UserName>" folder (i.e. your root folder). Windows explorer thinks that it is in root folder after login, but it's not so.
In order to come to "_database" folder you have to specify only '_database' (without slash). In order to come on one level higher just specify '..' in folder name of "FTP change directory".
Also, see my private message.