Hi

I am trying to ftp files from a windows server to a unix machine. When I login with the required credentials into the windows server , I want to make sure that the login directory is the correct one else I should change directory before initiating the ftp process.
I am using a perl script for ftping the files.
Please help.

Regards
Debangana

get the name of the directory after you login, see the documentation for the FTP module you are using for details.

Hi

I have tried using
[ftp->pwd]
to get the name of the current directory after I login but on windows server it always shows '/' as the login directory so I am not able to verify if it's the correct one.

Please help.

Regards
Debangana

Assuming you are using NET::FTP, look at the ls() or dir() functions and see if one of them will work.

i think you shouldn't need to worry too much on whether its the correct directory because you would have set it properly when configuring your FTP server.