Results 1 to 11 of 11

Thread: ftp

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    tonerstationbg IgIv's Avatar
    Join Date: May:2005
    Location:
    Posts: 4,090

    ftp

    :
    , 4 FTP . :
    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;
    }
    6k, .. .
    , . ( ) , FTP ( , ), , . , , , . ?
    , - , - .

  2. #2
    Banned
    Join Date: Aug:2008
    Location:
    Posts: 5,960
    - rsync.

  3. #3
    tonerstationbg IgIv's Avatar
    Join Date: May:2005
    Location:
    Posts: 4,090
    , Windows e. VC++ 2008.
    , - , - .

  4. #4
    Registered User 4004's Avatar
    Join Date: Apr:2011
    Location: BG
    Posts: 2,061
    , FtpPutFile , ? InternetCloseHandle.

  5. #5
    XaMaB's Avatar
    Join Date: Nov:2001
    Location:
    Posts: 20,387
    Quote Originally Posted by IgIv View Post
    , Windows e. VC++ 2008.
    windows deltacopy e rsync
    : XaMaB; . 0.42

    In God we Trust (all others must submit a X.509 certificate). , ()

  6. #6
    tonerstationbg IgIv's Avatar
    Join Date: May:2005
    Location:
    Posts: 4,090
    , . , . , - . Windows 7, 32 . FTP 20 , . , , .
    , - , - .

  7. #7
    Registered User
    Join Date: Oct:2006
    Location: Plovdiv
    Posts: 895
    ? .

    . ?

    . .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |