# RUBYSCRIPT2EXE.appdir show the temp dir

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe-appdir-show-the-temp-dir/76982>\
**Category:** Ruby\
**Created:** [November 23, 2006, 1:46am UTC](https://www.ruby-forum.com/t/rubyscript2exe-appdir-show-the-temp-dir/76982 "2006-11-23T01:46:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 23, 2006, 1:46am UTC](https://www.ruby-forum.com/t/rubyscript2exe-appdir-show-the-temp-dir/76982/1 "2006-11-23T01:46:20Z")

</div>

I’m trying the following code

require “rubyscript2exe”

@app\_dir = RUBYSCRIPT2EXE.appdir()

that on compile time works properly, giving me the path to the .rb  
script. On run-time though it gives to me the dir where the script is  
temporary placed instead of the path to the .exe ☹  
So I get something like  
"C:\DOCUME~1\USER~1\LOCALS~1\Temp\eee.dir.exe/app/…

Any clue how to get the actual .exe path?

Thanks, chr
