mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2003
Posts: 2
M
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: Oct 2003
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









Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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.

Joined: Oct 2003
Posts: 2
M
Bowl of petunias
OP Offline
Bowl of petunias
M
Joined: Oct 2003
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

Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
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)
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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


Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
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
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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.

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
$shortfn($mircdirfilename.txt)


-KingTomato
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
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.

Last edited by cold; 06/11/03 10:01 PM.

* cold edits his posts 24/7

Link Copied to Clipboard