# Gets the path to the executable file

**URL:** <https://forum.juce.com/t/gets-the-path-to-the-executable-file/55667>\
**Category:** General JUCE discussion\
**Created:** [April 4, 2023, 1:38pm UTC](https://forum.juce.com/t/gets-the-path-to-the-executable-file/55667 "2023-04-04T13:38:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KlausFeng](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@KlausFeng](https://forum.juce.com/u/KlausFeng)\
**Post date:** [April 4, 2023, 1:38pm UTC](https://forum.juce.com/t/gets-the-path-to-the-executable-file/55667/1 "2023-04-04T13:38:51Z")

</div>

When the M1 in apple chips or on the AMD processor window using the File: : getSpecialLocation (File: : currentExecutableFile), it will get to the wrong path. Have you encountered this problem? Thanks!

---

<div class="post-metadata">

**Author:** ![PluginPenguin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pluginpenguin/32/10203_2.png) [@PluginPenguin](https://forum.juce.com/u/PluginPenguin)\
**Post date:** [April 4, 2023, 2:21pm UTC](https://forum.juce.com/t/gets-the-path-to-the-executable-file/55667/2 "2023-04-04T14:21:02Z")

</div>

I think we need a bit more information here. Which path do you expect and which path do you actually get? And do you encounter the problem from within an audio plugin or from within a standalone application?

---

<div class="post-metadata">

**Author:** ![KlausFeng](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@KlausFeng](https://forum.juce.com/u/KlausFeng)\
**Post date:** [April 6, 2023, 1:13am UTC](https://forum.juce.com/t/gets-the-path-to-the-executable-file/55667/3 "2023-04-06T01:13:43Z")

</div>

The path shown in Apple M1 looks like this: “(juce::File) file = {  
fullPath = {  
text = (data = “/private/var/folders/l5/ggk\_8qkx4glb0cpnhxgmnvz00000gn/T/AppTranslocation/318E4D57-998F-4E9A-A92F-60807447EBF1/d/Device Status.gif”)  
}  
}”, this is the path I don’t want.  
The path shown on an Intel processor looks like this: “(juce::File) file = {  
fullPath = {  
text = (data = “/User/emusicer/Desktop/123/NewFloder/ControlCenter/Builds/MacOSX/build/Debug/Device Status.gif”)  
}  
}”, this is the path I want.  
I encountered this problem in a standalone application.  
Thank you!
