trying to connect to ftp with ShellExecute

This is a discussion on trying to connect to ftp with ShellExecute within the Windows Programming forums, part of the Platform Specific Boards category; ShellExecute(NULL,"open","ftp","192.168.1.100 user anonymous pwd anonymous",NULL,SW_SHOW); Sleep(5000); but the cmd window just flashs and cant see what happened the only reason ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    319

    trying to connect to ftp with ShellExecute

    ShellExecute(NULL,"open","ftp","192.168.1.100 user anonymous pwd anonymous",NULL,SW_SHOW);
    Sleep(5000);

    but the cmd window just flashs and cant see what happened

    the only reason i am trying to connect this way is because this code below is tagged as a virus aparently

    HINTERNET Net = InternetOpen("Agent",INTERNET_OPEN_TYPE_DIRECT,NUL L,NULL,INTERNET_FLAG_ASYNC);
    if(Net != NULL)
    {
    cout << "Handle Setup!"<< endl;
    HINTERNET Ftp = InternetConnect(Net,"192.168.1.100",INTERNET_DEFAU LT_FTP_PORT,"anddos","anddos",INTERNET_SERVICE_FTP ,INTERNET_FLAG_PASSIVE,NULL);
    }

    why would this be seen as a virus when infact i could be making a ftp client......
    Last edited by Anddos; 03-14-2009 at 06:24 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to connect to a ftp server
    By Coding in forum Networking/Device Communication
    Replies: 6
    Last Post: 07-12-2010, 11:36 AM
  2. file download through ftp using C under Unix
    By Mohit_t in forum C Programming
    Replies: 3
    Last Post: 06-12-2008, 03:00 PM
  3. How to connect to an FTP server and download a file?
    By Comeback Kid in forum C Programming
    Replies: 1
    Last Post: 11-19-2005, 08:44 PM
  4. Client timed-out once on connect(), can never connect() again
    By registering in forum Networking/Device Communication
    Replies: 6
    Last Post: 10-28-2003, 03:46 PM
  5. FTP Server :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 10-03-2002, 08:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21