exe file can't open ini file.

I have a custom application which can not be modified.
there are two exe files and one ini file.
aaa.exe : main software execution file. Coded in C#.
bbb.exe: a sub execution file which is called by aaa.exe. This file already read configuration information from ccc.ini
ccc.ini: located on network drive, is called by bbb.exe

Now, when I run aaa.exe in Windows 7 64bit OS, it prompts;
"do you want to allow the following program from an unknown publisher to make changes to this computer?
program: bbb.exe
publisher: unknown"

Then, I select Yes, get the following error message;
"INI file 'F:\folder1\ccc.ini' not found.
Please contact your computer department for support.
V1.3 Copyright 2000-2002 Tony Toews www.granite.ab.ca"

I thought it was some access right issue, so I tried to give full access to Everyone on F:\folder1, but still the same error message. When I browse to the folder, I was able to open the file from any user logged on.

How can I resolve this?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

It doesn't sound like a rights issue.  Sounds more like a .NET issue.  Since there is not an exception being thrown, that means that the author (Tony) caught the exception and gave a message that the file could not be found.  This does not necessarily mean that the program cannot find the file.  Your best bet will be to contact the author and see if they can assist you.

Any other avenue you take, will most likely be illegal depended upon your agreement with Mr. Toews.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TemodyPickalbatros, IT ManagerCommented:
Ini file must be located in the same exe file folder
So if you have 2 exe file must be in the same folder with ini file
If the whole folder exist on the network you must take run the exe file from the network drive
Other thing you should take a look on the ini file it may containing command line refer to a specific path for the exe
If it's you should edit the ini file and verify all path correct
crcsupportAuthor Commented:
Temody, do you mean that ini file always has to be reside on the same folder as exe file? I am not familiar with programming, but it seems a bit restrictive. The program refers to the correct network folder and file,  the file exists on the folder. So I guess that's what it is, ini and exe file has to be on the same folder.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

TemodyPickalbatros, IT ManagerCommented:
Yes the ini guide the exe file to work
Configuration files do not have to reside within the same folder as the exe file.  They can be anywhere that the programmer wants them to be (even on network resources).  It is up to the programmer to ensure that the program can correctly handle not being able to access the configuration files.

TemodyPickalbatros, IT ManagerCommented:
Can you open ini with notepad and take a look to know how it's working
crcsupportAuthor Commented:
Yes, I can open the file from the trouble computer.
I also gave full access NTFS rights just in case, still same error messages.
crcsupportAuthor Commented:
Below is the INI file bbb.exe refers to, but as the warning message says, it can't find the file, so I think it's irrelevant


MainApp=C:\Program Files\xxx\aaa.exe


ShortCut=F:\Folder1 aaa.lnk

SupportMsg=Please contact MIS department for support

LockOutMsg=Sorry, not allowed into the system right now.


crcsupportAuthor Commented:
I think I got the solution. I just created a shortcut to the exe file which is on the network drive where ini file is, now the program works.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.