Jump to content
UBot Underground

How to navigate to a relative file?


Recommended Posts

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

Link to post
Share on other sites

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 by Net66
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...