tooltrainer 12 Posted July 6, 2010 Report Share Posted July 6, 2010 I'm including an HTML front end with my new bot, that is loaded from a simple static .html file that I want to include with the bot. Problem is, I can't figure out how to make sure the bot navigates to where the file is located no matter where someone may have it on their machine. I only see location variables for the Programs folder and the Documents folder. How do I tell UBot to navigate to wherever the bot itself is installed and then look for the UI file from there? Jonathan Quote Link to post Share on other sites
alcr 135 Posted July 6, 2010 Report Share Posted July 6, 2010 I believe this is pretty much impossible right now unless you load in a settings.txt or something. Quote Link to post Share on other sites
tooltrainer 12 Posted July 6, 2010 Author Report Share Posted July 6, 2010 Nope, Dave answered it... at least in the way I needed it: http://ubotstudio.com/forum/index.php?/topic/2722-ability-to-include-bots-from-relative-or-current-path/page__gopid__17120 Jonathan Quote Link to post Share on other sites
Net66 54 Posted July 7, 2010 Report Share Posted July 7, 2010 (edited) I'm including an HTML front end with my new bot, that is loaded from a simple static .html file that I want to include with the bot. Problem is, I can't figure out how to make sure the bot navigates to where the file is located no matter where someone may have it on their machine. I only see location variables for the Programs folder and the Documents folder. How do I tell UBot to navigate to wherever the bot itself is installed and then look for the UI file from there? Jonathan Use $application folder. This is the folder that ubot is running from when using the bot from within ubot but will be the folder where the compiled bot is on a customers machine. Andy Oops didn't see where you'd already solved it! Didnt scroll down far enough. Edited July 7, 2010 by Net66 Quote Link to post Share on other sites
alcr 135 Posted July 7, 2010 Report Share Posted July 7, 2010 Oooooh I must have misread something. Yeah use $application folder Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.