Sign in to follow this  
Followers 0
Carousel

Path of ini file

7 posts in this topic

Hello,

I'm a newbbie on this Forum and I don't speak good English, thanks for your comprehension.

I've create a small programm with an au3 extention and a ini file for parameters.. And now I must give my programm to another people.

My question is :

How do for the programm return me the complet path of the au3 file ?? While the problem is when another people don't place files in the same orders that me, it wouldn't work.

Do you know what I would say ?

Thanks

Share this post


Link to post
Share on other sites



Hello,

I'm a newbbie on this Forum and I don't speak good English, thanks for your comprehension.

I've create a small programm with an au3 extention and a ini file for parameters.. And now I must give my programm to another people.

My question is :

How do for the programm return me the complet path of the au3 file ?? While the problem is when another people don't place files in the same orders that me, it wouldn't work.

Do you know what I would say ?

Thanks

Is this what you are looking for?

MsgBox(1,"Workingdir",@WorkingDir)

Share this post


Link to post
Share on other sites

just do

iniread("my.ini", ...)

instead of

iniread("c:\...\my.ini", ...)

then copy your ini to your script-folder and everything is fine

Ok thanks it works. :-)

Share this post


Link to post
Share on other sites

by the way, this belongs in the support forum.

Share this post


Link to post
Share on other sites

My prog is for delete database, and I must choose the date with a small calendar when I would delete it. It isn't a very big programm..

But I've a another question :

How do to create a ini file when I configure the programm.

For exemple, I start the programm, go in parameters, make my configuration, and then I would that I accept my configuration, It create automaticly a *.ini file.

Do you see ??

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0