Thread: trying to connect to ftp with ShellExecute

  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 05: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, 10: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, 02: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, 07:14 PM