Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.5k views
in Java FTP by (120 points)
Hello,

I am using the following in my code:
com.enterprisedt.net.ftp.FTPClient ftpClient = new FTPClient();
ftpClient.chdir(remoteDir);
where remoteDir=/Program Files/ABC/XYZ.

I get an error "ERROR Error while Getting the file from remote server
com.enterprisedt.net.ftp.FTPException: /Program*/ABC/XYZ: The filename, directory name, or volume label syntax is incorrect." This happens due to the space beween 'Program' and 'Files' in the folder name.
I need help in knowing how to use folder name with a space in 'remoteDir', with the chdir command?

Please log in or register to answer this question.

Categories

...