mIRC Home    About    Download    Register    News    Help

Topic Options
#245038 - 09/04/14 03:58 PM [BUG]: /writeini & /write
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
Hello,

there is something VERY strange that i cannot see anything else than bug, when i use the /writeini command.

when i use this command with file test.ini is working, but when i use it with the file global.ini it return me an error accessing file, why?

work command: /writeini test.ini #channel TEST 4
OK FILE CREATED
-
command: /writeini global.ini #channel TEST 4
FILE NOT CREATED
ERROR: * /writeini: error accessing file 'C:\Users\Dimitris\Documents\RafaeLLa IRC Bot v6.0 by westor\global.ini'

command: /write global.txt test | /write global.aa test
FILE NOT CREATED
* /write: unable to open file 'C:\Users\Dimitris\Documents\mIRC\global.txt'
* /write: unable to open file 'C:\Users\Dimitris\Documents\mIRC\global.aa'

EDIT: this problem is and for /write command too.

- Thanks!


Edited by westor (09/04/14 04:08 PM)
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#245040 - 09/04/14 04:38 PM Re: [BUG]: /writeini & /write [Re: westor]
Loki12583 Online
Hoopy frood

Registered: 22/01/04
Posts: 1264

Top
#245054 - 10/04/14 12:34 AM Re: [BUG]: /writeini & /write [Re: Loki12583]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
so what is the solution of this problem? how can i know which words does not work with /write or /writeini to halt them on an event?
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#245063 - 10/04/14 09:54 AM Re: [BUG]: /writeini & /write [Re: Loki12583]
TRT Offline
Babel fish

Registered: 22/06/03
Posts: 81
It's sad Windows is still including these archaic limitations from almost 20 years ago.
Oh well, at least Metro looks good, right?
_________________________
My full script pieces: (COM addons)

Top
#245068 - 10/04/14 01:43 PM Re: [BUG]: /writeini & /write [Re: TRT]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
Originally Posted By: TRT
It's sad Windows is still including these archaic limitations from almost 20 years ago.
Oh well, at least Metro looks good, right?


Nice comment there is a problem and you tell about windows work, do you have any best solution ? if not do not post thinks that are uninteresting this post.
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#245073 - 10/04/14 03:20 PM Re: [BUG]: /writeini & /write [Re: westor]
Loki12583 Online
Hoopy frood

Registered: 22/01/04
Posts: 1264
The solution is not to use any of names that mIRC prohibits you from using. The names will change from system to system, but here is a list of devices on my computer obtained by running the program mentioned in the thread I linked to.

http://pastebin.com/GzZkEwh9

Top
#245075 - 10/04/14 03:35 PM Re: [BUG]: /writeini & /write [Re: Loki12583]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
Ok tell me how can i gain all these ? and save it on an %variable or an .txt file to add an if statment on my script if the user has this nickname to not proceed? because you said it is not the same in all the systems.


Edited by westor (10/04/14 03:42 PM)
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#245078 - 10/04/14 04:29 PM Re: [BUG]: /writeini & /write [Re: westor]
Loki12583 Online
Hoopy frood

Registered: 22/01/04
Posts: 1264
I already told you how to get the list. If you don't use their nick as the file name, then it's irrelevant.

Top
#245079 - 10/04/14 04:35 PM Re: [BUG]: /writeini & /write [Re: Loki12583]
westor Offline
Hoopy frood

Registered: 27/12/08
Posts: 1511
Loc: Greece
I used the devices.zip that check in previous post but does not display anything and how can i make it to save all these informations of devices list into an .txt file?


Edited by westor (10/04/14 04:36 PM)
_________________________
Need Online mIRC help or an mIRC Scripting Freelancer? -> http://westor.ucoz.com/contact <-

Top
#245080 - 10/04/14 04:50 PM Re: [BUG]: /writeini & /write [Re: westor]
Loki12583 Online
Hoopy frood

Registered: 22/01/04
Posts: 1264
You need to run the exe from command prompt

If you create a file devices.bat with contents: devices.exe > test.txt

you can /run the bat from mirc

All of this is pretty moot through. Why do you need to know the names ahead of time? If you need to know the reason you can't open a file, use $fopen and $ferr and take action based on that.

Top