# Path Manipulation - Give extension without the Dot

**URL:** https://www.finalbuilder.com/forums/t/path-manipulation-give-extension-without-the-dot/3989
**Category:** Feature Requests
**Created:** [October 29, 2008, 12:20pm UTC](https://www.finalbuilder.com/forums/t/path-manipulation-give-extension-without-the-dot/3989 "2008-10-29T12:20:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 29, 2008, 12:20pm UTC](https://www.finalbuilder.com/forums/t/path-manipulation-give-extension-without-the-dot/3989/1 "2008-10-29T12:20:07Z")

</div>

Well this is a tiny wish- I need to get the file extension with the Dot&nbsp;&nbsp; File.exe&nbsp; Will give me only 'exe' .

And also another tiny thing - Fb 5 and 6 both have the same icon - could you change the color of one of them ? (i have both installed)

Thanks Daphna Levin

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [October 30, 2008, 1:13am UTC](https://www.finalbuilder.com/forums/t/path-manipulation-give-extension-without-the-dot/3989/2 "2008-10-30T01:13:40Z")

</div>

Hi Daphna,

The 'Path Manipulation' action should be including the '.' when its extracting the extension from a filename. I've attached a test project, could you please run that and see whether the 'Path Manipulation' action is working as expected?

With regards to the the icons, we won't be changing them for FinalBuilder 6 but we'll make sure they're changed in future versions.

Regards,&nbsp;  
Paul.

[Extract Extension.fbz6](https://www.finalbuilder.com/forums/uploads/default/original/2X/e/e62a2ec8b5b530f4278fb454bfc22d48789f1029.fbz6) (1.819 KB)

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 30, 2008, 10:45am UTC](https://www.finalbuilder.com/forums/t/path-manipulation-give-extension-without-the-dot/3989/3 "2008-10-30T10:45:33Z")

</div>

Sorry for my Typo, i meant WITHOUT the dot.

Thanks Daphna

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [October 31, 2008, 12:33pm UTC](https://www.finalbuilder.com/forums/t/path-manipulation-give-extension-without-the-dot/3989/4 "2008-10-31T12:33:29Z")

</div>

Hi Daphna,

The easiest way to remove the preceding '.' would be to add one line of script to the Path Manipulation's AfterAction script event. In Javascript this would be:

```
Extension = Extension.substring(1);
```

Alternatively you can use the 'String SubString' action to perform the same thing. I've attached an updated project which uses the script event to remove the '.'.

Regards,  
Paul.

[Extract Extension 2.fbz6](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/4767ecdcc765d884f955525a8ad74f4dcc1fb06c.fbz6) (1.984 KB)
