Results 1 to 11 of 11
Thread: ftp
Hybrid View
-
14th February 2018 08:07 #1
ftp
:
, 4 FTP . :
6k, .. .bool Send2ftp(char mode)
{
bool Result;
HINTERNET hInternet = InternetOpen(NULL, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
HINTERNET hFtpSession = InternetConnect(hInternet, L"xxx.xxx.xxx.xxx", INTERNET_DEFAULT_FTP_PORT, L"User", L"Password", INTERNET_SERVICE_FTP, 0, 0);
switch (mode)
{
case 1: {Result = FtpPutFile(hFtpSession, L"D:/file1.dat", L"/data/file1.dat",FTP_TRANSFER_TYPE_BINARY,0);b reak;}
case 2: {Result = FtpPutFile(hFtpSession, L"D:/file2.dat", L"/data/file2.dat",FTP_TRANSFER_TYPE_BINARY,0);b reak;}
case 3: {Result = FtpPutFile(hFtpSession, L"D:/file3.dat", L"/data/file3.dat",FTP_TRANSFER_TYPE_BINARY,0);b reak;}
case 4: {Result = FtpPutFile(hFtpSession, L"D:/file4.dat", L"/data/file4.dat",FTP_TRANSFER_TYPE_BINARY,0);b reak;}
}
InternetCloseHandle(hFtpSession);
InternetCloseHandle(hInternet);
return Result;
}
, . ( ) , FTP ( , ), , . , , , . ?, - , - .
-
14th February 2018 09:53 #2Banned
Join Date: Aug:2008
Location:
Posts: 5,960
- rsync.
-
14th February 2018 10:06 #3
-
14th February 2018 15:38 #4
-
14th February 2018 15:47 #5
-
14th February 2018 16:51 #6
, . , . , - . Windows 7, 32 . FTP 20 , . , , .
, - , - .
-
14th February 2018 17:57 #7Registered User
Join Date: Oct:2006
Location: Plovdiv
Posts: 895
? .
. ?
. .




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in