blacksabbath 2 Posted July 10, 2014 Report Share Posted July 10, 2014 Hello, I need to use a variable in a file field so for example: C:\Dropbox\uBot\#Folder\cat.jpg But it seems uBot can't recognise this? I need to be able to change the file location. I did think of having the full file path in a variable but that's my last resort. Any ideas? Thank you Quote Link to post Share on other sites
Gogetta 263 Posted July 10, 2014 Report Share Posted July 10, 2014 I really don't understand the problem you are having since variables can be used just about anywhere in UBot. Paste part of your code so we can take a look. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 10, 2014 Report Share Posted July 10, 2014 You need to put open and close brackets on the variable for ubot to recognize it. C:\Dropbox\uBot\{#Folder}\cat.jpg Quote Link to post Share on other sites
blacksabbath 2 Posted July 11, 2014 Author Report Share Posted July 11, 2014 (edited) Hello,Thank you for the replies, here is the code! I just need to be able to put a name of a folder into the variable so I can easily change which folder to select from a csv! Edit: It seems to be working now...I have no idea why? Could it be because I had two versions of uBot open at the same time? define Navigate(#FolderPath) { create table from file("C:\\Dropbox\\uBot\\uBot Shop Data\\{#FolderPath}\\D1-ProductDataTest.csv", &Files) navigate($table cell(&Files, 1, 0), "Wait") } create table from file("C:\\Dropbox\\uBot\\uBot Shop Data\\ShopFolderNames.csv", &FolderNames) Navigate($table cell(&FolderNames, 0, 0)) Edited July 11, 2014 by blacksabbath 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.