mIRC Home    About    Download    Register    News    Help

Print Thread
#245038 09/04/14 02:58 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358

Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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? -> https://irc.chathub.org <-
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?

Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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? -> https://irc.chathub.org <-
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
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

Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
I already told you how to get the list. If you don't use their nick as the file name, then it's irrelevant.

Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
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.


Link Copied to Clipboard