<?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[Datei im Verzeichnis des Executables öffnen]]></title><description><![CDATA[<p>Ich mühe mich gerade damit ab, eine Plattformunabhängie Lösung dafür zu finden, eine Datei (deren Name ich kenne) im Verzeichnis der ausfühbaren Datei zu öffnen. Mit reinen Standard-Bordmittel scheint das nicht zu gehen. argv[0] hängt davon ab, wie ich das Programm aufrufe.</p>
<p>boost::filesystem habe ich mir angeschaut, aber auch noch keine Lösung gefunden.<br />
fs::system_complete( fs::path( argv[0] ) ) habe ich probiert, klappt aber leider auch viel zu oft nicht.</p>
<p>Gibt es überhaupt eine Lösung für dieses Problem? Wenn ja, welche?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/299538/datei-im-verzeichnis-des-executables-öffnen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 03:19:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/299538.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Feb 2012 13:54:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 13:54:33 GMT]]></title><description><![CDATA[<p>Ich mühe mich gerade damit ab, eine Plattformunabhängie Lösung dafür zu finden, eine Datei (deren Name ich kenne) im Verzeichnis der ausfühbaren Datei zu öffnen. Mit reinen Standard-Bordmittel scheint das nicht zu gehen. argv[0] hängt davon ab, wie ich das Programm aufrufe.</p>
<p>boost::filesystem habe ich mir angeschaut, aber auch noch keine Lösung gefunden.<br />
fs::system_complete( fs::path( argv[0] ) ) habe ich probiert, klappt aber leider auch viel zu oft nicht.</p>
<p>Gibt es überhaupt eine Lösung für dieses Problem? Wenn ja, welche?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180494</guid><dc:creator><![CDATA[Mups]]></dc:creator><pubDate>Mon, 13 Feb 2012 13:54:33 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 14:07:04 GMT]]></title><description><![CDATA[<p>Qt? Bin sicher, dass du da deine Lösung findest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180506</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180506</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 13 Feb 2012 14:07:04 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 14:08:59 GMT]]></title><description><![CDATA[<p>w00t? Einfach den Dateinamen angeben?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180508</guid><dc:creator><![CDATA[Hi]]></dc:creator><pubDate>Mon, 13 Feb 2012 14:08:59 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 16:00:25 GMT]]></title><description><![CDATA[<blockquote>
<p>eine Plattformunabhängie Lösung dafür zu finden, eine Datei (deren Name ich kenne) im Verzeichnis der ausfühbaren Datei zu öffnen</p>
</blockquote>
<pre><code class="language-cpp">ifstream datei;
datei.open(filename);
</code></pre>
<p><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/2180587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180587</guid><dc:creator><![CDATA[Thuruk]]></dc:creator><pubDate>Mon, 13 Feb 2012 16:00:25 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 16:12:14 GMT]]></title><description><![CDATA[<p>Bedenke dass dein Programm nicht unbedingt die Rechte hat um dort eine Datei zu erstellen (z.B. auf Windows ab Vista).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180592</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180592</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Mon, 13 Feb 2012 16:12:14 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 16:16:45 GMT]]></title><description><![CDATA[<p>Zur Klarstellung:<br />
* Ich kenne den Namen der Datei, aber nicht den Pfad dorthin.<br />
* Der Pfad ist der selbe wie der meiner ausführbaren Datei<br />
* Ich will nicht schreiben, ich will nur lesen</p>
<p>Unter Linux geht wol dieses:</p>
<pre><code class="language-cpp">char szTmp[100];
	sprintf(szTmp, &quot;/proc/%d/exe&quot;, getpid());
	int bytes = readlink(szTmp, s, n);
</code></pre>
<p>Unter Windows jenes:</p>
<pre><code class="language-cpp">int bytes = GetModuleFileName(0, s, n);
</code></pre>
<p>Aber etwas Plattformunabhängiges, zb mit boost::filesystem habe ich noch nicht gefunden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180598</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180598</guid><dc:creator><![CDATA[Mups]]></dc:creator><pubDate>Mon, 13 Feb 2012 16:16:45 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 17:33:37 GMT]]></title><description><![CDATA[<p>Wenn du Sie spezifisch öffnen möchtest, musst du es sagen, sonst natürlich C++ Filestreams! Die funktionieren überall, wo du eine Anwendung compilieren kannst. Sonst müsstest du schon konkreter werden. Ich hab zuerst gedacht, du willst iwie Bilder öffnen, speziell behandeln, oder Audio-Dateien, usw.</p>
<p>Wenn der Pfad der Datei derselbe wie der deiner executable ist, dann sollte ich dich auf relative Dateipfade verweisen, da du durch diese &quot;Technik&quot; nicht einmal irgendeinen Slash brauchst. Es wird einfach der Dateiname angegeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180639</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 13 Feb 2012 17:33:37 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 17:45:56 GMT]]></title><description><![CDATA[<p>Falls es noch aktuell ist empfehle ich hier die Filesystem Library aus Boost.</p>
<p><a href="http://www.boost.org/doc/libs/1_48_0/libs/filesystem/v3/doc/reference.html#current_path" rel="nofollow">http://www.boost.org/doc/libs/1_48_0/libs/filesystem/v3/doc/reference.html#current_path</a></p>
<blockquote>
<p>Returns: The current working directory path, as if by POSIX getcwd(). is_absolute() is true for the returned path.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2180650</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180650</guid><dc:creator><![CDATA[Hobo]]></dc:creator><pubDate>Mon, 13 Feb 2012 17:45:56 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 18:52:53 GMT]]></title><description><![CDATA[<p>Ihr vergesst hier offenbar, dass das Arbeitsverzeichnis nicht dem Verzeichnis der ausführbaren Datei entsprechen muss (AFAIK z.B. wenn man eine Datei über eine Verknüpfung öffnet).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180681</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180681</guid><dc:creator><![CDATA[wxSkip]]></dc:creator><pubDate>Mon, 13 Feb 2012 18:52:53 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:25:05 GMT]]></title><description><![CDATA[<p>Ja, aber der Standard garantiert doch das:</p>
<blockquote>
<p>argv[0] shall be the pointer to the initial character of a ntmbs that represents the<br />
name used to invoke the program or &quot;&quot;.</p>
</blockquote>
<p>Also sowas:</p>
<pre><code class="language-cpp">std::string verzeichnis(std::string(*argv).substr(0, s.first.rfind('\\')));
std::ifstream stream((verzeichnis + dateiname).c_str());
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2180685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180685</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:15:52 GMT]]></title><description><![CDATA[<p>wxSkip schrieb:</p>
<blockquote>
<p>Ihr vergesst hier offenbar, dass das Arbeitsverzeichnis nicht dem Verzeichnis der ausführbaren Datei entsprechen muss (AFAIK z.B. wenn man eine Datei über eine Verknüpfung öffnet).</p>
</blockquote>
<p>Gibt es dafür nicht spezielle Definitionen, wie das läuft? Ich bin sicher, der erste Kommandozeilenparameter ist nachwievor das Verzeichnis der executable. Ich glaube gar, eine Verknüpfung ist nichts weiter als eine executable die eine andere aufruft, also ist es ja völlig irrelevant ob diese in- oder direkt aufgerufen wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180688</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180688</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:15:52 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:16:37 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Ja, aber der Standard garantiert doch das:</p>
<blockquote>
<p>argv[0] shall be the pointer to the initial character of a ntmbs that represents the<br />
name used to invoke the program or &quot;&quot;.</p>
</blockquote>
<p>Also sowas:</p>
<pre><code class="language-cpp">std::string verzeichnis(std::string(argv).substr(0, s.first.rfind('\\')));
std::ifstream stream((verzeichnis + dateiname).c_str());
</code></pre>
</blockquote>
<p>Seit wann kann man std::string(argv) schreiben?<br />
Du zitierst doch schon selbst, dass argv[0] auch &quot;&quot; sein kann...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180689</guid><dc:creator><![CDATA[wxSkip]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:16:37 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:17:28 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>wxSkip schrieb:</p>
<blockquote>
<p>Ihr vergesst hier offenbar, dass das Arbeitsverzeichnis nicht dem Verzeichnis der ausführbaren Datei entsprechen muss (AFAIK z.B. wenn man eine Datei über eine Verknüpfung öffnet).</p>
</blockquote>
<p>Gibt es dafür nicht spezielle Definitionen, wie das läuft? Ich bin sicher, der erste Kommandozeilenparameter ist nachwievor das Verzeichnis der executable. Ich glaube gar, eine Verknüpfung ist nichts weiter als eine executable die eine andere aufruft, also ist es ja völlig irrelevant ob diese in- oder direkt aufgerufen wird.</p>
</blockquote>
<p>Verknüpfungen haben immer noch die Dateiendungen .lnk und sind sogar (umständlich) in Texteditoren einsehbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180691</guid><dc:creator><![CDATA[wxSkip]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:17:28 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:25:49 GMT]]></title><description><![CDATA[<p>Ich dachte, argv ist ein char**?</p>
<p>Also ist</p>
<pre><code>argv[x] &lt;=&gt; *(argv + x)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2180696</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180696</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:25:49 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:25:03 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Ich dachte, argv ist ein char**?</p>
<p>Also ist</p>
<pre><code>argv[x] &lt;=&gt; *(argv + x)
</code></pre>
</blockquote>
<p>Genau. Und wo findest du <a href="http://cplusplus.com/reference/string/string/string/" rel="nofollow">hier</a> einen Konstruktor für char **?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180698</guid><dc:creator><![CDATA[wxSkip]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:25:03 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:25:35 GMT]]></title><description><![CDATA[<p>wxSkip schrieb:</p>
<blockquote>
<p>Hacker schrieb:</p>
<blockquote>
<p>Ich dachte, argv ist ein char**?</p>
<p>Also ist</p>
<pre><code>argv[x] &lt;=&gt; *(argv + x)
</code></pre>
</blockquote>
<p>Genau. Und wo findest du <a href="http://cplusplus.com/reference/string/string/string/" rel="nofollow">hier</a> einen Konstruktor für char **?</p>
</blockquote>
<p>Jaja, du hast ja recht. Editiert!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180699</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180699</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:25:35 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:37:23 GMT]]></title><description><![CDATA[<p>Wat is s?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180706</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180706</guid><dc:creator><![CDATA[Hobo]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:37:23 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:38:19 GMT]]></title><description><![CDATA[<p>Der Standard garantiert nichtmal dass es sowas wie Verzeichnisse überhaupt gibt.<br />
Einen wirklich plattformunabhängigen Weg kanns daher also rein prinzipiell schon nicht geben.<br />
Hier vielleicht ein hilfreiches Posting: <a href="http://stackoverflow.com/a/1024937" rel="nofollow">http://stackoverflow.com/a/1024937</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180709</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180709</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:38:19 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:45:12 GMT]]></title><description><![CDATA[<p>Wenn es auf dem System keine Verzeichnisse gibt, hat das Programm auch keinen Sinn mehr.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180714</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180714</guid><dc:creator><![CDATA[Hobo]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:45:12 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 19:50:46 GMT]]></title><description><![CDATA[<p>Naja, dann nimm eben am einfachsten argv[0] oder implementier dir eben eine Funktion für jedes System das du unterstützen willst. So kompliziert ist das dann doch auch wieder nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180716</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180716</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Mon, 13 Feb 2012 19:50:46 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 21:02:53 GMT]]></title><description><![CDATA[<p>dot schrieb:</p>
<blockquote>
<p>Naja, dann nimm eben am einfachsten argv[0] oder implementier dir eben eine Funktion für jedes System das du unterstützen willst. So kompliziert ist das dann doch auch wieder nicht...</p>
</blockquote>
<p>Womit man wieder auf meinen Weg geht, oder gleich sowas:</p>
<pre><code class="language-cpp">std::string GetProgrammDirectory()
{
    #ifdef _Windows

        // WINAPI-Code

    #elif __unix__ || __unix

     //POSIX-konformer Code

    #elif __OS2__

    // Für OS2 (was für eine Überraschung)

    #else

    // Code mit Standard-C++ Filestreams als Alternative

    #endif
}
</code></pre>
<p>Edit: Nur ein Beispiel! Mir ist klar, dass das da oben sinnlos ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180741</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180741</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 13 Feb 2012 21:02:53 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 21:13:30 GMT]]></title><description><![CDATA[<p>Könnt ihr bitte mal aufhören, trivialen Mist mit argv[0] vorzuschlagen? Der OP hat bereits im ersten Post gezeigt, dass er mit boost und argv[0] nicht so recht weiterkam. Einige bekleckern sich hier nicht gerade mit Ruhm.</p>
<p>Hobo schrieb:</p>
<blockquote>
<p>Wenn es auf dem System keine Verzeichnisse gibt, hat das Programm auch keinen Sinn mehr.</p>
</blockquote>
<p>Die Argumentation war, dass der Standard keine Verzeichnisse kennt und daher nicht helfen kann. Inwiefern hilft dir dann die Feststellung, dass das Programm auf Systemen ohne Verzeichnisse keinen Sinn macht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180750</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Mon, 13 Feb 2012 21:13:30 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 21:23:41 GMT]]></title><description><![CDATA[<p>Michael E. schrieb:</p>
<blockquote>
<p>Könnt ihr bitte mal aufhören, trivialen Mist mit argv[0] vorzuschlagen?</p>
</blockquote>
<p>Das denke ich auch, ifdefs sind die einzige Möglichkeit und bei jedem mir bekannten OS als jeweils ~Dreizeiler zu implementieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180754</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180754</guid><dc:creator><![CDATA[Thorgrim]]></dc:creator><pubDate>Mon, 13 Feb 2012 21:23:41 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 21:29:50 GMT]]></title><description><![CDATA[<p>Thorgrim schrieb:</p>
<blockquote>
<p>Michael E. schrieb:</p>
<blockquote>
<p>Könnt ihr bitte mal aufhören, trivialen Mist mit argv[0] vorzuschlagen?</p>
</blockquote>
<p>Das denke ich auch, ifdefs sind die einzige Möglichkeit und bei jedem mir bekannten OS als jeweils ~Dreizeiler zu implementieren.</p>
</blockquote>
<p>Dankeschön! <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/2180759</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180759</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 13 Feb 2012 21:29:50 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 21:36:08 GMT]]></title><description><![CDATA[<p>Michael E. schrieb:</p>
<blockquote>
<p>Könnt ihr bitte mal aufhören, trivialen Mist mit argv[0] vorzuschlagen? Der OP hat bereits im ersten Post gezeigt, dass er mit boost und argv[0] nicht so recht weiterkam. Einige bekleckern sich hier nicht gerade mit Ruhm.</p>
</blockquote>
<p>Vielleicht macht der OP das ja nicht richtig, was ein guter Grund wäre, diese trivialen Ansätze nicht gleich zu verwerfen, sondern ihm einige Hilfestellungen hinsichtlich dieser zu geben.</p>
<blockquote>
<p>Hobo schrieb:</p>
<blockquote>
<p>Wenn es auf dem System keine Verzeichnisse gibt, hat das Programm auch keinen Sinn mehr.</p>
</blockquote>
<p>Die Argumentation war, dass der Standard keine Verzeichnisse kennt und daher nicht helfen kann. Inwiefern hilft dir dann die Feststellung, dass das Programm auf Systemen ohne Verzeichnisse keinen Sinn macht?</p>
</blockquote>
<p>Die Feststelung hilft mir, und ich hoffe auch anderen :), insofern, dass der Sinn des Programms ist,</p>
<blockquote>
<p>eine Datei (deren Name ich kenne) <strong>im Verzeichnis der ausfühbaren Datei</strong> zu öffnen.</p>
</blockquote>
<p>Auf einem System, das keine Verzeichnisse kennt, hat das Programm also keinen Sinn.</p>
<p>Insofern müssen Verzeichnisse garantiert sein, wenn nicht durch den Standard, dann durch das System.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180764</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180764</guid><dc:creator><![CDATA[Hobo]]></dc:creator><pubDate>Mon, 13 Feb 2012 21:36:08 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Verzeichnis des Executables öffnen on Mon, 13 Feb 2012 21:36:18 GMT]]></title><description><![CDATA[<p>Hacker schrieb:</p>
<blockquote>
<p>Dankeschön! <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>
</blockquote>
<p>Naja, die <a href="http://sourceforge.net/apps/mediawiki/predef/index.php?title=Operating_Systems" rel="nofollow">Makros</a> sind noch nicht ganz richtig...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2180766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2180766</guid><dc:creator><![CDATA[Thorgrim]]></dc:creator><pubDate>Mon, 13 Feb 2012 21:36:18 GMT</pubDate></item></channel></rss>