FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FTP / Microsoft Server 2003
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
FTP / Microsoft Server 2003
Posted: Tue May 22, 2007 10:31 PM

When trying to download a file, if the routine is run with a direct internet connection, the following code segment is OK ... but if it is run through Windows Server 2003 ( Microsoft ), it will not upload the file successfully.

On the same computer, with IPSwitch, the FTP connection is fine.

Does anyone have any thoughts on this ?

hInternet = InternetOpen( "ASW", 1,0,0,0 )
  hconnect := InterNetConnect( hInternet, mCLinkFt, 0, mCLinkUn, mCLinkPw, 1, 0, 0 )
  IF hconnect == 0
     MsgAlert( "Your connection was not established - there will be no file transfer" )
  ELSE
     IF FTPPutFile( hConnect, cUpFile, cUpFile, 0, 0 )
      ELSE
       MsgAlert( "Upload was unsuccessful )
   ENDIF

The problem occurs on XP Pro and Vista computers.

We get to this point, and then the message is returned that the transfer was not successful ...

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion