User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: My problem with making directory path

  1. #1
    No Products Registered

    Join Date
    Aug 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My problem with making directory path

    Hi everyone,

    I am proud owner of the MMF2dev. I am on my way of creating some application and everything was going well until I need to face the problem of making my application able to make saves and load a saved file containing my application settings.

    What i want to do is to be able to create, overwrite, and load data from my let's call it settings.ini file from the
    directory on the PC wich can work under all windows systems.

    I know from other posts that winXP,2000 and Vista,Seven
    got some differences, and the last two got program files folder protected.
    My limited programing knowlage does not let me find the solution of this problem because i only know one expression apppath$+"......" for that and don't know what exactly this (apppath$) is called an alias? It works well to create/save/load a file in my aplication or folder in it but only there and it will not work if my application will be instaled in program files folder on vista/7 wich is protected as far as i read from other posts (I am on widows XP). In short words.

    My application will be installed by using Install Creator at the directory where user want it to be, but the save files i wish to be somewhere where it can be accesable by my application without problems of saving/loading stored data but I don't know what expressions I need to use, or is there one universal for this

    I spend a lot of time searching forum and the internet
    but didn't find what i was looking for and will be thankful to anyone for any tips or info about what i need to do or search for.







  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: My problem with making directory path

    AppPath$ is short for Application Path.
    You can put the "File" object into your frame and replace AppPath$+"settings.ini" instead with AppDataDirectory$( "File" )+"\My Program Settings.ini" (because there may be a settings file already for anoither program).
    If you know how to use the file object, you could create a folder for Your Program or Your Company\Your Program if you wish.
    The Application Data directory is the best place to store data for your application.
    Working as fast as I can on Fusion 3

  3. #3
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: My problem with making directory path

    Make your own directory off the root directory for the application and save files. This would be better than having users of different OS's ripping their hair out and ripping your arm out of its socket.

    Matv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: My problem with making directory path

    [size:8pt][quote=nivram]Make your own directory off the root directory[/quote]No matter ho many subfolders you make in the protected Program Files Folder, you cannot escape its fury, unless this is something I misunderstood?[/size]

  5. #5
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: My problem with making directory path

    LB...emm. I didn't say anything about the stupid Program's Files Folder. I stated the root directory file offshoot. Like Paul Boland and I do.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: My problem with making directory path

    Oh, I thought you meant root directory as in the directory where the program is installed. Sorry for the misunderstanding >_<

  7. #7
    No Products Registered

    Join Date
    Aug 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: My problem with making directory path

    Thank you for your quick reply, I will try that

  8. #8
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: My problem with making directory path

    Ok LB, no worries.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: My problem with making directory path

    Hi nivram,

    I tried having my customers install to the c:\myapp\
    They ran the program, which sucessfully created a serial number file in C:\myapp\Prefs.

    But then the next time they re-ran my app, It still asked for the serial, like it couldn't read or read it.

    I'm using Apppath$ for both the creation and the read, and it works for all but two people who run it...any idea why its failing for these two people?

    thanks

  10. #10
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: My problem with making directory path

    Sorry, no idea. It is defying laws of MS. The program saving like that should be like a old DOS computer.Maybe Paul Boland has an ides, as he is the save guru.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Page 1 of 2 1 2 LastLast

Similar Threads

  1. problem with path movement
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th October 2010, 11:18 AM
  2. Installation directory's problem
    By Owen in forum Install Creator and Patch Maker
    Replies: 5
    Last Post: 13th August 2010, 08:54 AM
  3. Directory/folder problem? (Game not working)
    By MrSaturn33 in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 20th July 2010, 12:58 AM
  4. Directory selector problem (file object)
    By Nifflas in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 20th March 2010, 11:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •