mIRC Home    About    Download    Register    News    Help

Print Thread
#183165 18/08/07 06:02 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Not sure if this is the right forum for this:

1. I would have liked to have seen a choice offered before installing on where mIRC will store the settings in "Application Data/mIRC" or in the mIRC directory, like many other programs do.

2. $mircdir will now return the "Application data/mIRC" path, instead of the path mIRC is installed in. I assume mIRC checks for the location of the ini file, since copying that to the mIRC directory fixes this, but shouldn't $mircdir always refer to the directory mIRC is installed in?


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
LocutusofBorg #183167 18/08/07 06:26 AM
Joined: Dec 2002
Posts: 155
S
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 155
Originally Posted By: LocutusofBorg
1. I would have liked to have seen a choice offered before installing on where mIRC will store the settings in "Application Data/mIRC" or in the mIRC directory, like many other programs do.

That wouldn't be appropriate for Windows Vista.

Originally Posted By: LocutusofBorg
2. $mircdir will now return the "Application data/mIRC" path, instead of the path mIRC is installed in. I assume mIRC checks for the location of the ini file, since copying that to the mIRC directory fixes this, but shouldn't $mircdir always refer to the directory mIRC is installed in?

I guess this change was made so that older scripts worked well under new installations without having to update them. $nofile($mircexe) should work well (I haven't tested it), but maybe a new identifier would be nice.

Last edited by Strider; 18/08/07 06:29 AM.
LocutusofBorg #183185 18/08/07 08:39 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Indeed, you might find some other replies about this useful, in this thread. Not quite sure how either of these are bug reports though.

Regards,


Mentality/Chris
LocutusofBorg #183187 18/08/07 09:01 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Quote:
shouldn't $mircdir always refer to the directory mIRC is installed in?
Not according to the help file:

$mircdir
Returns the directory where mIRC stores its settings, such as mirc.ini, and other files and folders.


Older versions' help files state:

$mircdir
Returns the current directory of the mIRC program.


"current directory" was never defined as the directory mirc.exe is in. The -r command-line switch (which existed long before 6.3) illustrates the difference.

Last edited by qwerty; 18/08/07 09:12 AM.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
LocutusofBorg #183200 18/08/07 10:53 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
I think it's more appropriate for $mircdir to return the directory of the mIRC settings. There's not really any need to know the directory the program is in as far as I can see, but if you need to you can use $nofile($mircexe)

Strider #183354 19/08/07 09:25 AM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Originally Posted By: Strider
That wouldn't be appropriate for Windows Vista.

1. Why?
2. Not everybody uses windows vista.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
Om3n #183404 19/08/07 07:59 PM
Joined: Dec 2002
Posts: 155
S
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 155
*sigh* It wouldn't be appropriate for Windows Vista and any other recent version of Windows, it's just that Vista practically forces you to do it the right way. There? Windows applications should use the Application Data folder to store their settings.

Strider #183433 20/08/07 12:10 AM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Just because Vista has decided to be hitler about it, that doesnt mean its impossible to do, and it certainly doesnt mean the option should not be there for those that use older versions of Windows.

I know perfectly well how Vista functions in this manner, but i do not agree that its reason enough for such a small program to force the behavior on non-vista users. I do not believe in the logic behind excluding a feature based on one-of-many operating system versions having 'almost' no use for it.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby

Link Copied to Clipboard