mIRC Home    About    Download    Register    News    Help

Print Thread
[BUG]: /writeini & /write #245038 09/04/14 02:58 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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!

Last edited by westor; 09/04/14 03:08 PM.
Re: [BUG]: /writeini & /write [Re: westor] #245040 09/04/14 03:38 PM
Joined: Jan 2004
Posts: 1,274
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,274

Re: [BUG]: /writeini & /write [Re: Loki12583] #245054 09/04/14 11:34 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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?

Re: [BUG]: /writeini & /write [Re: Loki12583] #245063 10/04/14 08:54 AM
Joined: Jun 2003
Posts: 81
T
TRT Offline
Babel fish
Offline
Babel fish
T
Joined: Jun 2003
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?

Re: [BUG]: /writeini & /write [Re: TRT] #245068 10/04/14 12:43 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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.

Re: [BUG]: /writeini & /write [Re: westor] #245073 10/04/14 02:20 PM
Joined: Jan 2004
Posts: 1,274
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,274
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

Re: [BUG]: /writeini & /write [Re: Loki12583] #245075 10/04/14 02:35 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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.

Last edited by westor; 10/04/14 02:42 PM.
Re: [BUG]: /writeini & /write [Re: westor] #245078 10/04/14 03:29 PM
Joined: Jan 2004
Posts: 1,274
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,274
I already told you how to get the list. If you don't use their nick as the file name, then it's irrelevant.

Re: [BUG]: /writeini & /write [Re: Loki12583] #245079 10/04/14 03:35 PM
Joined: Dec 2008
Posts: 1,511
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
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?

Last edited by westor; 10/04/14 03:36 PM.
Re: [BUG]: /writeini & /write [Re: westor] #245080 10/04/14 03:50 PM
Joined: Jan 2004
Posts: 1,274
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,274
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.