FTP change directory

Discuss RoboTask here
Post Reply
Wingate
Posts: 9
Joined: Wed May 12, 2004 6:02 am
Location: United States
Contact:

FTP change directory

Post 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
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

FTP change directory

Post 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"
Wingate
Posts: 9
Joined: Wed May 12, 2004 6:02 am
Location: United States
Contact:

FTP change directory

Post by Wingate »

thanks oleg
i'll giver it a try
Wingate
Posts: 9
Joined: Wed May 12, 2004 6:02 am
Location: United States
Contact:

FTP change directory

Post 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. ,
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

FTP change directory

Post 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.
Wingate
Posts: 9
Joined: Wed May 12, 2004 6:02 am
Location: United States
Contact:

FTP change directory

Post 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?
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

FTP change directory

Post 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.
Last edited by Oleg on Sat Mar 29, 2008 12:48 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

FTP change directory

Post 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.
Last edited by Oleg on Mon Mar 31, 2008 12:51 pm, edited 1 time in total.
Post Reply