<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nsis.sourceforge.io/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Smile4ever</id>
	<title>NSIS Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://nsis.sourceforge.io/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Smile4ever"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/Special:Contributions/Smile4ever"/>
	<updated>2026-05-27T19:53:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=User:Smile4ever&amp;diff=21690</id>
		<title>User:Smile4ever</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=User:Smile4ever&amp;diff=21690"/>
		<updated>2012-02-11T15:37:35Z</updated>

		<summary type="html">&lt;p&gt;Smile4ever: Created page with &amp;quot;This page belongs to Smile4ever.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page belongs to [[wikipedia:User:Smile4ever|Smile4ever]].&lt;/div&gt;</summary>
		<author><name>Smile4ever</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Get_extention_of_file&amp;diff=21689</id>
		<title>Get extention of file</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Get_extention_of_file&amp;diff=21689"/>
		<updated>2012-02-11T15:35:15Z</updated>

		<summary type="html">&lt;p&gt;Smile4ever: moved Get extention of file to Get extension of file&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Get extension of file]]&lt;/div&gt;</summary>
		<author><name>Smile4ever</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Get_extension_of_file&amp;diff=21688</id>
		<title>Get extension of file</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Get_extension_of_file&amp;diff=21688"/>
		<updated>2012-02-11T15:35:15Z</updated>

		<summary type="html">&lt;p&gt;Smile4ever: moved Get extention of file to Get extension of file&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{PageAuthor|opher}}&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
This is based on the work of Afrow UK.&lt;br /&gt;
This more accuretly reports the extention:&lt;br /&gt;
For path &amp;quot;C:\some dir\some file with no extention&amp;quot;&lt;br /&gt;
  Afrow UK&#039;s implementation will return the original string as &amp;quot;extention&amp;quot;&lt;br /&gt;
For path &amp;quot;C:\Installation.CD\some file with no extention&amp;quot;&lt;br /&gt;
  Afrow UK&#039;s implementation will return &amp;quot;CD\some file with no extention&amp;quot; as extention.&lt;br /&gt;
In both cases this function will return &amp;quot;&amp;quot; (empty) as extention.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
  Push &amp;quot;C:\some path\filename.extention&amp;quot;&lt;br /&gt;
  Call GetFileExt&lt;br /&gt;
  Pop $R0             ; $R0 = &amp;quot;extention&amp;quot;&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The Function ==&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
Function GetFileExt&lt;br /&gt;
  Exch $0 ; input string&lt;br /&gt;
  Push $1&lt;br /&gt;
  Push $2&lt;br /&gt;
  StrCpy $1 0&lt;br /&gt;
  loop:&lt;br /&gt;
    IntOp $1 $1 - 1&lt;br /&gt;
    StrCpy $2 $0 1 $1&lt;br /&gt;
    StrCmp $2 &amp;quot;&amp;quot; empty&lt;br /&gt;
    StrCmp $2 &amp;quot;\&amp;quot; empty&lt;br /&gt;
    StrCmp $2 &amp;quot;.&amp;quot; found&lt;br /&gt;
    Goto loop&lt;br /&gt;
  empty:&lt;br /&gt;
    StrCpy $0 &amp;quot;&amp;quot;&lt;br /&gt;
    goto exit&lt;br /&gt;
  found:&lt;br /&gt;
    IntOp $1 $1 + 1&lt;br /&gt;
    StrCpy $0 $0 &amp;quot;&amp;quot; $1&lt;br /&gt;
  exit:&lt;br /&gt;
    Pop $2&lt;br /&gt;
    Pop $1&lt;br /&gt;
    Exch $0&lt;br /&gt;
FunctionEnd&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Disk, Path &amp;amp; File Functions]]&lt;/div&gt;</summary>
		<author><name>Smile4ever</name></author>
	</entry>
</feed>