Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.3k views
in General by (560 points)
Sorry, I'm new but how do I put a file from my local C: to a remote server? I'm familar with a normal FTP, but this doesn't understand a drive letter. So if I wanted a local file that is at C:\File1.txt, what is the correct format of the file?

Thanks,

2 Answers

0 votes
by (162k points)
For the Java version it's
ftp.put("C:\\File1.txt", "File1.txt");

and for the .NET version (using FTPConnection) it's:
ftp.DownloadFile("C:\\File1.txt", "File1.txt"
0 votes
by (560 points)
Thanks...

I guess that's as simple as it gets. Is there some place that lists, the format of all OS's? I'm interesting in Windows and Mac.

I understand you put the backslashes in windows now, but for the MAC, do you leave the forward slashes in the filename?

Categories

...