<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Auf FTP-Server kopieren]]></title><description><![CDATA[<p>Hi, wie kopiert man eine Datei auf einen FTP Server?</p>
<pre><code class="language-cpp">bCheck = CopyFile(&quot;C:\\test.txt&quot;,&quot;ftp://server/test.txt&quot;,TRUE);
</code></pre>
<p>So gehts nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148230/auf-ftp-server-kopieren</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 05:00:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148230.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 May 2006 14:32:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Wed, 24 May 2006 14:33:48 GMT]]></title><description><![CDATA[<p>Hi, wie kopiert man eine Datei auf einen FTP Server?</p>
<pre><code class="language-cpp">bCheck = CopyFile(&quot;C:\\test.txt&quot;,&quot;ftp://server/test.txt&quot;,TRUE);
</code></pre>
<p>So gehts nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064324</guid><dc:creator><![CDATA[Filou204]]></dc:creator><pubDate>Wed, 24 May 2006 14:33:48 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Wed, 24 May 2006 14:40:09 GMT]]></title><description><![CDATA[<p>Filou204 schrieb:</p>
<blockquote>
<p>Hi, wie kopiert man eine Datei auf einen FTP Server?</p>
</blockquote>
<p>WinInet<br />
<a href="http://msdn.microsoft.com/library/en-us/wininet/wininet/ftp_sessions.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/wininet/wininet/ftp_sessions.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1064331</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1064331</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Wed, 24 May 2006 14:40:09 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 11:06:23 GMT]]></title><description><![CDATA[<p>Hallo Jochen! Dank für den Tip!</p>
<p>Ich habe es so versucht:</p>
<pre><code class="language-cpp">HINTERNET FTP;
bCheck = FtpPutFile(FTP, &quot;C:\test\test.txt&quot;,&quot;ftp://server/test.txt&quot;,FTP_TRANSFER_TYPE_UNKNOWN,INTERNET_FLAG_RELOAD);
</code></pre>
<p>Leider hab ich noch Probleme.<br />
und zwar:</p>
<pre><code>error LNK2001: Nichtaufgeloestes externes Symbol __imp__FtpPutFileA@20
</code></pre>
<p>und</p>
<pre><code>warning C4700: Lokale Variable 'FTP' wurde ohne Initialisierung verwendet
</code></pre>
<p>Könnt Ihr mir helfen wie man diese Funktion benutzt? Wie muss ich HINTERNET anlegen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Gruß,<br />
Filou</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065378</guid><dc:creator><![CDATA[Filou204]]></dc:creator><pubDate>Fri, 26 May 2006 11:06:23 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 11:19:32 GMT]]></title><description><![CDATA[<p>Du must noch mit der WinInet.lib linken.<br />
Und HINTERNET muss IMHO mit InternetOpen() und InternetConnect() initialisiert werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065382</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065382</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Fri, 26 May 2006 11:19:32 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 11:47:37 GMT]]></title><description><![CDATA[<p>connan schrieb:</p>
<blockquote>
<p>Du must noch mit der WinInet.lib linken.<br />
Und HINTERNET muss IMHO mit InternetOpen() und InternetConnect() initialisiert werden.</p>
</blockquote>
<p>Ohje...<br />
Sorry dass ich so doof frage aber was meinst Du mit &quot;linken&quot;<br />
#include &quot;WinInet.lib&quot; geht nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065405</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065405</guid><dc:creator><![CDATA[Filou204]]></dc:creator><pubDate>Fri, 26 May 2006 11:47:37 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 11:53:39 GMT]]></title><description><![CDATA[<p>Nein, du musst in den Projekteinstellungen bei Linker -&gt; Eingabe -&gt; zusätzliche Abhängigkeiten die lib angeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065415</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Fri, 26 May 2006 11:53:39 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 12:07:04 GMT]]></title><description><![CDATA[<p>Ok, das habe ich gemacht.</p>
<p>Allerdings is das ja sau kompliziert!!<br />
Was will den InternetOpen alles für Parameter?<br />
Ich verstehe das nicht ganz... Und ich weiß ja nicht was ich angeben muss wenn ich auf einen FTP-Server zugreifen will. Irgendwas mit INTERNET_OPEN_TYPE_PROXY?? Ich weiß es nicht...</p>
<p>Gibts da kein Beispiel dafür? Aus der MSDN werde ich nicht schlau.<br />
Soweit bin ich jetzt (und weiß nicht mal obs auch nur in etwa stimmt)</p>
<pre><code class="language-cpp">InternetOpen( &quot;ftp://server.net/&quot;,INTERNET_OPEN_TYPE_DIRECT,
&quot;hier muss irgendwas rein?!&quot;,&quot;hier auch und zwar ein const char* laut debugger&quot;,
INTERNET_FLAG_ASYNC);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1065428</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065428</guid><dc:creator><![CDATA[Filou204]]></dc:creator><pubDate>Fri, 26 May 2006 12:07:04 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 12:11:32 GMT]]></title><description><![CDATA[<p>Laut Doku solltest Du bei deiden NULL eintragen, wenn du nicht einen eigenen proxy verwenden willst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065439</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065439</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Fri, 26 May 2006 12:11:32 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 12:32:53 GMT]]></title><description><![CDATA[<p>Danke connan!</p>
<p>Es compliert jetzt ohne Fehlermeldung.<br />
Aber es kopiert die Datei nicht. Irgendwo muss ich noch nen Fehler in den Paramentern haben.</p>
<pre><code class="language-cpp">//Datei an FTP Server senden....
InternetOpen( &quot;ftp://server.net/&quot;,INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,INTERNET_FLAG_ASYNC);
InternetConnect(FTP,&quot;ftp://server.net/&quot;,21,NULL,NULL,INTERNET_SERVICE_FTP,INTERNET_FLAG_PASSIVE,NULL);
bCheck = FtpPutFile(FTP, &quot;c:\\test.txt&quot;,&quot;ftp://server.net/test.txt&quot;,FTP_TRANSFER_TYPE_UNKNOWN,INTERNET_FLAG_RELOAD);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1065454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065454</guid><dc:creator><![CDATA[Filou204]]></dc:creator><pubDate>Fri, 26 May 2006 12:32:53 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 12:42:42 GMT]]></title><description><![CDATA[<p>Du musst auf jeden Fall:</p>
<pre><code class="language-cpp">HINTERNET FTP = InternetOpen( &quot;ftp://server.net/&quot;,INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,INTERNET_FLAG_ASYNC);
</code></pre>
<p>benutzen bevor du FTP in Internetconnect verwendest.</p>
<p>Falls Du das schon machst, was geben denn die Funktionen zurück?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065462</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065462</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Fri, 26 May 2006 12:42:42 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 12:44:35 GMT]]></title><description><![CDATA[<p>ok, habs geändert.<br />
nach InternetOpen steht in FTP: 0x00cc0004</p>
<p>Ich weiß auch nicht ob ich fie Adresse so eingeben muss:<br />
<a href="ftp://server.net/" rel="nofollow">ftp://server.net/</a><br />
oder<br />
<a href="ftp://server.net" rel="nofollow">ftp://server.net</a><br />
oder<br />
<a href="ftp://server.net/test.txt" rel="nofollow">ftp://server.net/test.txt</a><br />
oder is das wurscht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065470</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065470</guid><dc:creator><![CDATA[Filou204]]></dc:creator><pubDate>Fri, 26 May 2006 12:44:35 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 12:50:26 GMT]]></title><description><![CDATA[<p>Wenn FTP nicht 0 ist hats eigentlich schon geklappt. Was gibt denn IConnect zurück? Achso, Du musst auch FTP = InternetConnect(...) benutzen, solltest aber vieleicht ein zweites Handle an dieser Stelle einführen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065477</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Fri, 26 May 2006 12:50:26 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 12:54:32 GMT]]></title><description><![CDATA[<p>InternetConnect gibt 0x000000 zurück <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
Und FtpPutFile gibt FALSE zurück.</p>
<p>aber ich danke Dir jetzt schon eine Million mal! Allein hätte ich das<br />
nie hinbekommen!!!</p>
<p>Irgendwas stimmt also an dem InternetConnect nicht....</p>
<p>Wenn ich aber am Arbeitsplatz auf mein FTP Server zugreife funktioniert das ohne Benutzername und ohne Kennwort....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065482</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065482</guid><dc:creator><![CDATA[Filou204]]></dc:creator><pubDate>Fri, 26 May 2006 12:54:32 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 13:06:22 GMT]]></title><description><![CDATA[<p>Dann guck doch einfach mal mit GetLastError() was nicht geht. Laut Doku wird für ftp Verbindungen mit lpszUsername = NULL 'anonymous' als username verwendet und deine e-mail als passwort <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> . Versuchs doch mal mit einem leeren String &quot;&quot; bzw. obs damit auch von deinem Arbeitsplatz nicht geht. Siehe dazu auch die Tabelle in der SDK-Doku für Internetconnect für den Parameter lpszPassword.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065495</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065495</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Fri, 26 May 2006 13:06:22 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 13:14:56 GMT]]></title><description><![CDATA[<p>Ah das ist ein guter Tip!</p>
<p>Der Standartbenutzer auf dem Server 2003 ist IUSER_SERVER<br />
Vielleicht liegts daran. ich lege mal ein Testbenutzer an und probiere ein bissel rum...</p>
<p>Melde mich später / am Montag wieder!!</p>
<p>Danke Dir!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065506</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065506</guid><dc:creator><![CDATA[Filou204]]></dc:creator><pubDate>Fri, 26 May 2006 13:14:56 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 26 May 2006 13:17:55 GMT]]></title><description><![CDATA[<p>Dann, bis dahin <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1065508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1065508</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Fri, 26 May 2006 13:17:55 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Tue, 06 Jun 2006 10:59:56 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Ich hab verzweifelt rumprobiert und bin jetzt ein bisschen weiter.<br />
InternetConnect hat nicht funktioniert weil man als Ziel nicht &quot;<a href="ftp://server.net" rel="nofollow">ftp://server.net</a>&quot; eingeben darf sondern nur die IP. Also nur &quot;<a href="http://server.net" rel="nofollow">server.net</a>&quot;.</p>
<p>Aber FtpPutFile funktioniert noch nicht.</p>
<pre><code class="language-cpp">bCheck = FtpPutFile(FTP, &quot;D:\test.txt&quot;,&quot;test.txt&quot;,FTP_TRANSFER_TYPE_ASCII,INTERNET_FLAG_RELOAD);
DWORD Test = GetLastError();
</code></pre>
<p>In Test steht 12018 drin. Aber was heißt das?</p>
<p>Ich bin mir nicht sicher was ich bei den letzten Parameter von FtpPutFile angeben muss.<br />
Das ist nur geratenwas ich da stehen hab. Bei dem letzten Parameter hab ich die MSDN überhaupt nicht verstanden. Könnte ihr mir das villeicht übersetzen?</p>
<p><a href="http://msdn.microsoft.com/library/en-us/wininet/wininet/ftpputfile.asp?frame=true" rel="nofollow">http://msdn.microsoft.com/library/en-us/wininet/wininet/ftpputfile.asp?frame=true</a></p>
<p>PS: In der MSDN steht auch was von InternetWriteFile. Muss ich das vorher noch benutzen?????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1072283</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1072283</guid><dc:creator><![CDATA[Filou204]]></dc:creator><pubDate>Tue, 06 Jun 2006 10:59:56 GMT</pubDate></item><item><title><![CDATA[Reply to Auf FTP-Server kopieren on Fri, 09 Jun 2006 10:57:29 GMT]]></title><description><![CDATA[<p>Sorry, war im Urlaub.</p>
<p>Was mir als erstes auffällt ist, das Du bei der Pfadangabe zur datei ein \ vergessen hast</p>
<p>Als nächstes:</p>
<p>ERROR_INTERNET_INCORRECT_HANDLE_TYPE<br />
12018<br />
The type of handle supplied is incorrect for this operation.</p>
<p>Ist denn das Handle was InternetConnect bzw. InternetOpen zurückgibt != 0 ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074489</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074489</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Fri, 09 Jun 2006 10:57:29 GMT</pubDate></item></channel></rss>