|
-
Sep 24th, 2000, 03:10 PM
#1
Thread Starter
Lively Member
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
-
Sep 24th, 2000, 03:17 PM
#2
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
-
Sep 24th, 2000, 03:20 PM
#3
Hyperactive Member
You can specify a file path, if not it will open the file only if it is within the same directory as the program.
-
Sep 24th, 2000, 03:35 PM
#4
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|