mIRC Home    About    Download    Register    News    Help

Topic Options
#58490 - 30/10/03 09:19 PM Problem with Mirc 6.12 creating 'Program' file
mjarzoms Offline
Bowl of petunias

Registered: 30/10/03
Posts: 2
Hello,

I am using mirc 6.12 on a windows 2000 machine.
When I login to a chat room with mirc, a text file is created at the root directory called 'Program'

c:\Program

The file seems to contain my password to the chat room and not much else.

However everyday I start my computer a message comes up asking to rename this file, which I usually do. This is kind of annoying but I'm probably used to it by now.

However this file also causes some programs not to work.
For example if the file c:\Program exists I can not open Acrobat pdf files through Internet Explorer.

I suspect the c:\Program file screws windows up in trying to access longer directory names such as c:\Program Files\...
but I am just guessing.

Can this bug be removed in future revisions? Or is there any way to avoid this with mirc 6.12?

Thanks for your help.

-Mark Jarzomski









Top
#58491 - 30/10/03 09:29 PM Re: Problem with Mirc 6.12 creating 'Program' file
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
Is this a blank version of mIRC? Mirc, by nature, doesn't create any files in any other directory than its own. The only other thing it does, it created a registry key for the instal date and lock password. If there is a file being created, it most likely is a script installed, not mirc.
_________________________
-KingTomato

Top
#58492 - 30/10/03 10:01 PM Re: Problem with Mirc 6.12 creating 'Program' file
Collective Offline
Planetary brain

Registered: 10/12/02
Posts: 3138
Loc: London, UK
I had the same problem, and I doubt it's mIRC's fault.

In my case it was a script that hadn't quoted or $shortfn'd a file it was using.

Type /!remote off and see if it still happens.

Top
#58493 - 30/10/03 10:41 PM Re: Problem with Mirc 6.12 creating 'Program' file
mjarzoms Offline
Bowl of petunias

Registered: 30/10/03
Posts: 2
Thanks Collective and King Tomato for your help.
Using /!remote off solved my problem.

There must be a login script outside of mirc that is writing to the file.

Thanks again for the info, it's great to get rid of nagging little problems like that.

-Mark Jarzomski

Top
#58494 - 31/10/03 07:28 AM Re: Problem with Mirc 6.12 creating 'Program' file
neophyte Offline
Fjord artisan

Registered: 12/04/03
Posts: 426
Loc: Australia
This happens because mIRC/windows don't parse spaces in filepaths very well (at least without enclosing it in "" marks").

You can change this by simply making the logs directory in the mIRC.ini file look like this:

[dirs]
waves=sounds\
midis=sounds\
mp3s=sounds\
wmas=sounds\
oggs=sounds\
pics=src\images\
logdir=logs\


The bit in bold is what you need to adjust.

This makes mIRC put the logs into the log directory of mIRC's root folder (ie, c:\program files\mIRC\logs).

This should fix your problem.
_________________________
--------
mIRC - fun for all the family (except grandma and grandpa)

Top
#58495 - 04/11/03 04:39 AM Re: Problem with Mirc 6.12 creating 'Program' file
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
I would likely say you have a script writting to a file, with a path somethinglike this.

Write $mircdir $+ filename.txt blah blah blah

But $mircdir is now
C:\program files\mirc\

so u end up with
Write C:\program files\mirc\filename.txt blah blah blah

this well write to a file called C:\program

as said by others one way to fix it is to do this.

Write " $+ $mircdir $+ filename.txt $+ " blah blah blah

or

Write $shortfn($mircdir $+ filename.txt) blah blah blah


Top
#58496 - 05/11/03 07:32 AM Re: Problem with Mirc 6.12 creating 'Program' file
cold Offline
Hoopy frood

Registered: 25/02/03
Posts: 810
Loc: Brazil
Be careful with $shortfn(), it shortens a filename only if it actually exists. Otherwise, it won't change anything..
I'd stay with the quotes.
_________________________
* cold edits his posts 24/7

Top
#58497 - 06/11/03 06:44 AM Re: Problem with Mirc 6.12 creating 'Program' file
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
good point i always use quotes but, i should have had this

$shortfn($mircdir) $+ filename.txt

And even then they better make user filename.txt dont have spaces.

Top
#58498 - 06/11/03 06:49 AM Re: Problem with Mirc 6.12 creating 'Program' file
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
$shortfn($mircdirfilename.txt)
_________________________
-KingTomato

Top
#58499 - 06/11/03 10:00 PM Re: Problem with Mirc 6.12 creating 'Program' file
cold Offline
Hoopy frood

Registered: 25/02/03
Posts: 810
Loc: Brazil
According to versions.txt, this is not a recommended usage of $mircdir, or any of the directory related identifiers. It says that mIRC's parsing method for these wasn't updated only because most people were already appending text to them, and that using $+ would be better.
That said, I wouldn't be surprised if this wouldn't be supported anymore in the future, so I guess it's better to encourage people to use $+ instead.


Edited by cold (06/11/03 10:01 PM)
_________________________
* cold edits his posts 24/7

Top