New topic: creating files/folders in the application directory
<http://forums.realsoftware.com/viewtopic.php?t=29727> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message wake Post subject: creating files/folders in the application directoryPosted: Tue Aug 25, 2009 10:10 am Joined: Tue Nov 20, 2007 4:45 pm Posts: 8 Location: Saint Helens, OR Quick probably simple question. I have the following code: Dim dbFile as FolderItem Dim db as REALSQLdatabase db=New REALSQLdatabase dbFile = GetFolderItem("data/copyfolder.rsd") db.DatabaseFile=dbFile The above code works fine on my windows machine, but does not on my mac. Even though the file is there, my app continues to say not found. I assume that it is an issue with how I am defining the path?!? Basically, I want the application to always look in a sub folder of the folder that the application is run from for the database file. So if this app is run from inside the "/users/desktop/test" folder then the subfolder with the database would be "/users/desktop/test/data" Again, this works fine on Windows just not Mac for whatever reason. Hopefully this makes sense. Thanks in advance! ---wake Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
