Nex 2542 Share Posted March 7, 2018 zGod snipputs Link to comment Share on other sites More sharing options...
Scorpius 144 Author Share Posted March 7, 2018 String dreambot_folder = System.getProperty("user.home") + System.lineSeparator() + "Dreambot" I've re-edited the code back to the original version, its functionality is better than @Dinh's proposal becase wont work correctly with fresh start @Nex @Dinh Link to comment Share on other sites More sharing options...
Neffarion 486 Share Posted March 7, 2018 elaborate? System.getProperty("user.home") wont give you what you want when you use it. Use instead scripts.path Link to comment Share on other sites More sharing options...
Nex 2542 Share Posted March 7, 2018 System.getProperty("user.home") wont give you what you want when you use it. Use instead scripts.path path = new File(Paths.get("file").toAbsolutePath().normalize().toString()); Link to comment Share on other sites More sharing options...
Dinh 496 Share Posted March 10, 2018 Path DREAMBOT_DIRECTORY = Paths.get(System.getProperty("scripts.path")).getParent() Make me demi god again thanks Link to comment Share on other sites More sharing options...
Scorpius 144 Author Share Posted March 10, 2018 Path DREAMBOT_DIRECTORY = Paths.get(System.getProperty("scripts.path")).getParent() Make me demi god again thanks Yes! Promoted! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.