<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GetFullPathName in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939442#M16676</link>
    <description>That seems consistent with the Remarks in online help.</description>
    <pubDate>Tue, 20 Feb 2001 08:12:59 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-02-20T08:12:59Z</dc:date>
    <item>
      <title>GetFullPathName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939441#M16675</link>
      <description>Hi  &lt;BR /&gt;    When I invoke GetFullPathName with a filename as a parameter, I always get the path returned to be the path of the executable that invokes this function and not the path of the filename. Can anyone help me on this?  &lt;BR /&gt;  &lt;BR /&gt;Thanks  &lt;BR /&gt;Kausik</description>
      <pubDate>Tue, 20 Feb 2001 07:32:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939441#M16675</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-02-20T07:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: GetFullPathName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939442#M16676</link>
      <description>That seems consistent with the Remarks in online help.</description>
      <pubDate>Tue, 20 Feb 2001 08:12:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939442#M16676</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-02-20T08:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: GetFullPathName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939443#M16677</link>
      <description>Hi &lt;BR /&gt;   Then is there any function which takes a filename as a parameter and returns the complete pathname of that file? &lt;BR /&gt; &lt;BR /&gt;Thanks &lt;BR /&gt;Kausik</description>
      <pubDate>Tue, 20 Feb 2001 08:32:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939443#M16677</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-02-20T08:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: GetFullPathName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939444#M16678</link>
      <description>What you want is &lt;B&gt;logically&lt;/B&gt; impossible. It is possible that the &lt;BR /&gt;file with the same name exists on different drives and directories -- how could one know which of them you're looking for? &lt;BR /&gt; &lt;BR /&gt;You might find the following API functions usable: &lt;BR /&gt; &lt;BR /&gt;GetOpenFileName displays the "Open" dialog; the structure passed &lt;BR /&gt;to it contains, among other things, file title and full path name. &lt;BR /&gt; &lt;BR /&gt;FindFirstFile does a search for given filename which may contain wildcards &lt;BR /&gt; &lt;BR /&gt;GetCurrentDirectory returns the path to the current directory (the one specified by program shortcut. IIRC GetOpenFileName also changes the &lt;BR /&gt;current directory). &lt;BR /&gt; &lt;BR /&gt;GetModuleFileName(NULL,...  returns the path to "this" executable. &lt;BR /&gt; &lt;BR /&gt;HTH &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Wed, 21 Feb 2001 00:53:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939444#M16678</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-02-21T00:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: GetFullPathName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939445#M16679</link>
      <description>Yes, in Windows 95 and Windows NT, GetOpenFileName changes the current directory, regardless of whether "Open" or "Cancel" is used to close the dialog. In Windows 98, "Open" changes the current directory; "Cancel" does not. I haven't tried 2K or ME!</description>
      <pubDate>Wed, 21 Feb 2001 03:54:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939445#M16679</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-02-21T03:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: GetFullPathName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939446#M16680</link>
      <description>You could try using GETFILEINFOQQ. This would seem to allow you to do a fairly general search for a file, using the standard search order through local directory and path directories. &lt;BR /&gt; &lt;BR /&gt;David Jones</description>
      <pubDate>Wed, 21 Feb 2001 04:26:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939446#M16680</guid>
      <dc:creator>david_jones</dc:creator>
      <dc:date>2001-02-21T04:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: GetFullPathName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939447#M16681</link>
      <description>I have similar observations to kausikbs with FINDFILEQQ and GETFILEINFOQQ:  they only give information on and search in the current directory.  Although FINDFILEQQ says in online help that it searches in directories, I have never found out how to search more than one directory at a time.  I have used GETFILEINFOQQ successfully with wildcards to find all the files with particular extensions, but again, only in a single directory at a time.  I do not know if the API functions behave differently, but I have not yet used any. &lt;BR /&gt; &lt;BR /&gt;Bears of little brain who wrote their first FORTRAN programs in the early 60?s and have now advanced to writing QuickWin applications use the following to search for a file: &lt;BR /&gt; &lt;BR /&gt;CHARACTER*80 LINE &lt;BR /&gt;homedir = FILE$CURDRIVE &lt;BR /&gt;result  = GETDRIVEDIRQQ(homedir) &lt;BR /&gt;status  = CHANGEDIRQQ(homedir(1:3)) &lt;BR /&gt;LINE = 'dir '//FILENAME(1:LENGTH(FILENAME))//' /s/b/l/o:n &amp;gt;list.txt' &lt;BR /&gt;status  = SYSTEMQQ(LINE) &lt;BR /&gt; &lt;BR /&gt;[LENGTH returns the length of a string without trailing non-printing characters] &lt;BR /&gt; &lt;BR /&gt;Yes, it?s that old DOS again!  But it does work.  It searches the current drive in all subdirectories for FILENAME and puts only the full path (in lower case and sorted alphabetically) of all copies found into list.txt at the top of the current drive.  Then read the path (or paths) from list.txt, and if there is more than one copy, decide which is wanted.  If all working files are kept in say Drive D, where there is better control over multiple copies than in Drive C, the problems of decision are reduced. &lt;BR /&gt; &lt;BR /&gt;But I would rather not have a DOS window flashing up during the search process, and would prefer not to have to use DOS commands.  Has D.A.Jones hacked it with GETFILEINFOQQ?  I would welcome his posting a working example</description>
      <pubDate>Wed, 21 Mar 2001 16:21:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939447#M16681</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-03-21T16:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: GetFullPathName</title>
      <link>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939448#M16682</link>
      <description>Apologies for misinformation about GETFILEINFOQQ ... this was based on a recollection of reading the descriptions of this set of routines and thinking they would be usefull, together with the very brief description in the back of the printed Language Ref. &lt;BR /&gt; &lt;BR /&gt;However, I have found that FINDFILEQQ works as stated. The following is a slight mod of the example in the online help... &lt;BR /&gt; &lt;BR /&gt;       USE DFLIB &lt;BR /&gt; &lt;BR /&gt;       CHARACTER(256) pathname &lt;BR /&gt; &lt;BR /&gt;       INTEGER(4) pathlen &lt;BR /&gt; &lt;BR /&gt;       pathlen = FINDFILEQQ("gprint.bat", "PATH", pathname) &lt;BR /&gt; &lt;BR /&gt;       write(*,*) pathlen &lt;BR /&gt; &lt;BR /&gt;       WRITE (*,*) pathname &lt;BR /&gt; &lt;BR /&gt;       END &lt;BR /&gt; &lt;BR /&gt;My PATH variable has the value &lt;BR /&gt; &lt;BR /&gt;PATH=C:WINNTsystem32;C:WINNT;c:dajutil;C:WINNTSystem32WBEM &lt;BR /&gt; &lt;BR /&gt;and on my system gprint.bat is in c:dajutil. &lt;BR /&gt; &lt;BR /&gt;The program above yields the result &lt;BR /&gt; &lt;BR /&gt;         22 &lt;BR /&gt; &lt;BR /&gt; c:dajutilgprint.bat &lt;BR /&gt; &lt;BR /&gt;when run from an arbtirary directory (in this case c:daj	est	estdebug ). Unfortunately, it seems that FINDFILEQQ does not take wildcards.</description>
      <pubDate>Wed, 21 Mar 2001 20:32:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/GetFullPathName/m-p/939448#M16682</guid>
      <dc:creator>david_jones</dc:creator>
      <dc:date>2001-03-21T20:32:21Z</dc:date>
    </item>
  </channel>
</rss>

