<?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[Frage zu FTP]]></title><description><![CDATA[<p>Hallo,<br />
Ich habe versucht ein programm zu schreiben, dass auf einem FTP-Server einen Ordner erstellt. Leider funktioniert das nicht, es kommt immer die Fehlermeldung, dass nicht in das Verzeichnis gewechselt werden kann.</p>
<p>Hier mein Code:</p>
<pre><code class="language-cpp">HINTERNET first,ftp;

const char *open=&quot;Test&quot;;
BOOL erfolg;

first = InternetOpen(open,INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,INTERNET_FLAG_ASYNC);

if(first==NULL)
   {
   MessageBox(NULL,&quot;Internet Open Fehler&quot;,&quot;&quot;,MB_OK);
   InternetCloseHandle(first);
   }

ftp = InternetConnect(first,SERVER,INTERNET_DEFAULT_FTP_PORT,USER,PASS,INTERNET_SERVICE_FTP,0,0);

if(ftp==NULL)
   {
   MessageBox(NULL,&quot;FTP open Fehler&quot;,&quot;&quot;,MB_OK);
   InternetCloseHandle(first);
   }
   erfolg=FtpSetCurrentDirectory(ftp,ORDNER);
   if(!erfolg)
	   cout&lt;&lt;&quot;Fehler beim wechseln in das Verzeichnis!&quot;&lt;&lt;endl;
   else
	   cout&lt;&lt;&quot;Erfolgreich&quot;&lt;&lt;endl;
   erfolg=FtpCreateDirectory(ftp,&quot;Test&quot;);
   if(erfolg)
	   cout&lt;&lt;&quot;Gut&quot;&lt;&lt;endl;
   else
	   cout&lt;&lt;&quot;schlecht&quot;&lt;&lt;endl;
</code></pre>
<p>und</p>
<pre><code class="language-cpp">#define ORDNER TEXT(&quot;html&quot;)
</code></pre>
<p>ich habe auch schon</p>
<pre><code class="language-cpp">#define ORDNER TEXT(&quot;/html&quot;)
</code></pre>
<p>und</p>
<pre><code class="language-cpp">#define ORDNER TEXT(&quot;/html/&quot;)
</code></pre>
<p>ausprobiert..</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/169668/frage-zu-ftp</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 19:44:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169668.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Jan 2007 17:03:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu FTP on Sun, 07 Jan 2007 17:03:04 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Ich habe versucht ein programm zu schreiben, dass auf einem FTP-Server einen Ordner erstellt. Leider funktioniert das nicht, es kommt immer die Fehlermeldung, dass nicht in das Verzeichnis gewechselt werden kann.</p>
<p>Hier mein Code:</p>
<pre><code class="language-cpp">HINTERNET first,ftp;

const char *open=&quot;Test&quot;;
BOOL erfolg;

first = InternetOpen(open,INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,INTERNET_FLAG_ASYNC);

if(first==NULL)
   {
   MessageBox(NULL,&quot;Internet Open Fehler&quot;,&quot;&quot;,MB_OK);
   InternetCloseHandle(first);
   }

ftp = InternetConnect(first,SERVER,INTERNET_DEFAULT_FTP_PORT,USER,PASS,INTERNET_SERVICE_FTP,0,0);

if(ftp==NULL)
   {
   MessageBox(NULL,&quot;FTP open Fehler&quot;,&quot;&quot;,MB_OK);
   InternetCloseHandle(first);
   }
   erfolg=FtpSetCurrentDirectory(ftp,ORDNER);
   if(!erfolg)
	   cout&lt;&lt;&quot;Fehler beim wechseln in das Verzeichnis!&quot;&lt;&lt;endl;
   else
	   cout&lt;&lt;&quot;Erfolgreich&quot;&lt;&lt;endl;
   erfolg=FtpCreateDirectory(ftp,&quot;Test&quot;);
   if(erfolg)
	   cout&lt;&lt;&quot;Gut&quot;&lt;&lt;endl;
   else
	   cout&lt;&lt;&quot;schlecht&quot;&lt;&lt;endl;
</code></pre>
<p>und</p>
<pre><code class="language-cpp">#define ORDNER TEXT(&quot;html&quot;)
</code></pre>
<p>ich habe auch schon</p>
<pre><code class="language-cpp">#define ORDNER TEXT(&quot;/html&quot;)
</code></pre>
<p>und</p>
<pre><code class="language-cpp">#define ORDNER TEXT(&quot;/html/&quot;)
</code></pre>
<p>ausprobiert..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1205104</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1205104</guid><dc:creator><![CDATA[FrageFTP]]></dc:creator><pubDate>Sun, 07 Jan 2007 17:03:04 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FTP on Sun, 07 Jan 2007 17:05:01 GMT]]></title><description><![CDATA[<p>MSDN Library schrieb:</p>
<blockquote>
<p>To get a specific error message, call GetLastError. If the error message indicates that the FTP server denied the request to change a directory, use InternetGetLastResponseInfo to determine why.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1205107</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1205107</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sun, 07 Jan 2007 17:05:01 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FTP on Sun, 07 Jan 2007 17:09:54 GMT]]></title><description><![CDATA[<p>Da kommt dann der Fehlercode 997 und der bedeutet: Überlappender E/A -Ausgang wird bearbeitet<br />
Ich weiß allerding nicht was damit gemeint ist und kann damit das problem auch nicht alleine lösen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1205116</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1205116</guid><dc:creator><![CDATA[FrageFTP]]></dc:creator><pubDate>Sun, 07 Jan 2007 17:09:54 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FTP on Sun, 07 Jan 2007 17:42:28 GMT]]></title><description><![CDATA[<p>FrageFTP schrieb:</p>
<blockquote>
<p>Da kommt dann der Fehlercode 997 und der bedeutet: Überlappender E/A -Ausgang wird bearbeitet. Ich weiß allerding nicht was damit gemeint ist und kann damit das problem auch nicht alleine lösen.</p>
</blockquote>
<p>Wenn du keine asynchronen Aufrufe willst, warum benutzt du dann INTERNET_FLAG_ASYNC?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1205130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1205130</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sun, 07 Jan 2007 17:42:28 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu FTP on Sun, 07 Jan 2007 17:59:20 GMT]]></title><description><![CDATA[<p>danke MFK</p>
<p>daran lag es</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1205141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1205141</guid><dc:creator><![CDATA[FrageFTP]]></dc:creator><pubDate>Sun, 07 Jan 2007 17:59:20 GMT</pubDate></item></channel></rss>