User Tag List

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

Thread: INI File placement

  1. #1
    No Products Registered

    Join Date
    Aug 2006
    Location
    UK
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    INI File placement

    Is there a way to get my INI file to be in the directory that the .exe is in or does it have to be in the C:\ root?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    Merseyside, UK
    Posts
    398
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI File placement

    For the locations use apppath$ +"settings.ini"
    That will then create a file called settings.ini in the application directory.

  3. #3
    No Products Registered

    Join Date
    Aug 2006
    Location
    UK
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI File placement

    Many thx but I am having trouble as to where to set this.
    Is it in the INI expression:
    Set file to .... Apppath$+"Nameoffile"
    which I then presume would use the file "Nameoffile" to save and load from? (in the application directory)

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI File placement

    That's right - or alternatively, I always use "./filename.ini", which works equally well.

  5. #5
    No Products Registered

    Join Date
    Aug 2006
    Location
    UK
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI File placement

    Ok Im a tad confused, I wonder if u could clarify pls

    is it
    "./filename"
    or
    ".\filename"
    ?

  6. #6
    garethlowe
    Guest

    Re: INI File placement

    MMF Converts slashes to the correct orientation "\" so dont worry. But some extensions will affect .\ paths (such as common dialog) so be careful.

    And ideally for multi-user (and future Vista compatiblity) you should be writing into application data or %appdata%\Company Name\App Name\

    You can use YASO to get the users application data path.

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI File placement

    Or, %appdata%\Company Name\App Name\ should work. No need to use yaso if %appdata% works, is there?

  8. #8
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Jun 2006
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI File placement

    It's never worked for me...

  9. #9
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: INI File placement

    The File object contains a function to get the pathname of the AppData directory: AppDataDirectory$( "File" ).

    Yves.

  10. #10
    Clicker Fusion 2.5 DeveloperiOS Export ModuleXNA Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI File placement

    Will this work in older systems like Win 95 or Win 98?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Bug: Joystick and Button placement
    By Bibin in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 30th April 2012, 02:21 PM
  2. object placement
    By JWJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 28th July 2010, 01:51 AM
  3. Application placement question...
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 25th May 2010, 10:34 PM
  4. Odd placement issue
    By TwistidChimp in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 22nd April 2007, 03:22 PM
  5. Object Placement On Background
    By JonesGJ in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 14th November 2006, 08:25 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
  •