Results 1 to 4 of 4

Thread: Question from a stuck newbie......

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    79

    Question

    Ok here's my question,

    I'm using an ini file for this application I'm writing, in the code do I have to point to the specific directory where the ini file resides or is there a way to tell it that the ini file is in the same directory as the final exe file...Does that make any sense or have I just made everyone as confused as me???


    Any help would be appreciated


    Cheers
    The problem with designing something completely foolproof is to underestimate the ingenuity of a complete fool. - Douglas Adams

    I know the human being and fish can coexist peacefully. - GWB

    I think we agree, the past is over. - GWB

  2. #2
    Guest
    Here is how to determine if the ini file is in the same directory as the final exe.

    Code:
    If Dir(App.Path & "\inifile.ini") <> "" Then
    Msgbox "Ini file is in App's directory!"
    Else
    Msgbox "INI File not found!", vbCritical
    End If

  3. #3
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    You can specify a file path, if not it will open the file only if it is within the same directory as the program.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    79

    Thanks very much

    Thanks very much Matthew
    The problem with designing something completely foolproof is to underestimate the ingenuity of a complete fool. - Douglas Adams

    I know the human being and fish can coexist peacefully. - GWB

    I think we agree, the past is over. - GWB

Posting Permissions

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



Click Here to Expand Forum to Full Width