Bobby 14 Posted February 9, 2012 Report Share Posted February 9, 2012 Hi guys! If I have a bot ("C:\Nice folder\Another amazing folder\thebestbotever.ubot"), how could I do, that if I run this thebestbotever.ubot bot it knows the exact folder it is in ("C:\Nice folder\Another amazing folder\"). Thanks everybody! Quote Link to post Share on other sites
Gogetta 263 Posted February 9, 2012 Report Share Posted February 9, 2012 You are looking for $special folder I think. 1 Quote Link to post Share on other sites
odeesuba 24 Posted February 9, 2012 Report Share Posted February 9, 2012 use the code below, make sure that you save the bot or you will get the main program folder. set(#Ubot Folder, $special folder("Application"), "Global") 1 Quote Link to post Share on other sites
Eddie Waller 158 Posted February 9, 2012 Report Share Posted February 9, 2012 Application Folder will only work for a compiled bot, though. It does not work for .ubot files in the UBot workspace. It works for ubot files inside ubot studio as well. It will show as the directory that the saved ubot file is in. This was updated in v4.0.61 (5 months ago). 1 Quote Link to post Share on other sites
odeesuba 24 Posted February 9, 2012 Report Share Posted February 9, 2012 It works for ubot files inside ubot studio as well. It will show as the directory that the saved ubot file is in. This was updated in v4.0.61 (5 months ago). Yes, that was a nice addition. Quote Link to post Share on other sites
Bobby 14 Posted February 9, 2012 Author Report Share Posted February 9, 2012 Wow guys, thank you very much! I thought that "Special folder => Application" gives the folder where the uBot Studio software is installed. 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.