mIRC Home    About    Download    Register    News    Help

Print Thread
write -dlX Bug? #235454 19/12/11 03:36 PM
Joined: Dec 2011
Posts: 5
E
endgeek Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Dec 2011
Posts: 5
Hey guys,

I've a small script

Code:
alias writedltest {
  var %f1 = file1.txt | var %f2 = file2.txt
  echo -a $read(file1.txt,1) deleted 
  write file2.txt $read(file1.txt,1)
  write -dl1 file1.txt
  echo -a -------------------------
}


The first line from a text file should be deleted and the phrase should written in file2.. Script seem legit to me, and isn't very complicated, but got some errors..

in file1.txt are 12 lines, from AAA to LLL.. while I'm running this script I got this result:

Code:
aaa deleted
-
* /write: error updating 'C:\Users\[username]\AppData\Roaming\mIRC\file1.txt' (line 142, script.mrc)
-
aaa deleted
-
* /write: error updating 'C:\Users\[username]\AppData\Roaming\mIRC\file1.txt' (line 142, script.mrc)
-
aaa deleted
-------------------------
bbb deleted
-------------------------
ccc deleted
-------------------------
ddd deleted
-------------------------
eee deleted
-------------------------
fff deleted
-
* /write: error updating 'C:\Users\[username]\AppData\Roaming\mIRC\file1.txt' (line 142, script.mrc)
-
fff deleted
-------------------------
ggg deleted
-------------------------
hhh deleted
-------------------------
iii deleted
-
* /write: error updating 'C:\Users\[username]\AppData\Roaming\mIRC\file1.txt' (line 142, script.mrc)
-
iii deleted
-
* /write: error updating 'C:\Users\[username]\AppData\Roaming\mIRC\file1.txt' (line 142, script.mrc)
-
iii deleted
-
* /write: error updating 'C:\Users\[username]\AppData\Roaming\mIRC\file1.txt' (line 142, script.mrc)
-
iii deleted
-
* /write: error updating 'C:\Users\[username]\AppData\Roaming\mIRC\file1.txt' (line 142, script.mrc)
-
iii deleted
-------------------------
jjj deleted
-------------------------
kkk deleted
-------------------------


After that file1 is empty and in file2 are:

Code:
aaa
aaa
aaa
bbb
ccc
ddd
eee
fff
fff
ggg
hhh
iii
iii
iii
iii
iii
jjj
kkk



I can't explain the errors and looking for any fix for this issue.. hope someone can help me..

thanks

Last edited by endgeek; 19/12/11 09:25 PM.
Re: write -dlX Bug? [Re: endgeek] #235459 19/12/11 10:30 PM
Joined: Jan 2004
Posts: 1,302
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,302
I do not have this issue, maybe the file was open and locked by another program.

Last edited by Loki12583; 19/12/11 10:30 PM.
Re: write -dlX Bug? [Re: Loki12583] #235461 19/12/11 11:33 PM
Joined: Dec 2011
Posts: 5
E
endgeek Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Dec 2011
Posts: 5
I changed the path to c:\mirc and changed the script path from appdata\roaming to c:\mirc\ or tried to run mirc via admin but still got this error..


*update*
Tested with 6.35 and round about 500 lines.. working fine without any kind of this issue I've posted above..

*update2*
every time i got this error, mirc builds a new temp file like
mirc52.tm_
mirc113.tm_
mirc175.tm_

...but I don't get any idea, how to fix this issue...

Last edited by endgeek; 20/12/11 12:44 AM.
Re: write -dlX Bug? [Re: endgeek] #235463 20/12/11 03:06 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Type the following in mIRC:

//echo -a $version $os $script(0) $dll(0) $file($mircexe).sig $md5($mircexe,2)

Report the results here.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: write -dlX Bug? [Re: argv0] #235465 20/12/11 08:34 AM
Joined: Dec 2011
Posts: 5
E
endgeek Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Dec 2011
Posts: 5
i've deinstalled 7.22 at this moment,

but ma I can help you out with my info

I was using mIRC 7.22 on Win7 x64 without any scripts or dll files

Re: write -dlX Bug? [Re: endgeek] #235467 20/12/11 10:44 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
That doesn't help, we require the actual output from the command.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: write -dlX Bug? [Re: argv0] #235499 21/12/11 10:46 PM
Joined: Dec 2011
Posts: 5
E
endgeek Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Dec 2011
Posts: 5
what info do you need?

Re: write -dlX Bug? [Re: endgeek] #235500 21/12/11 11:41 PM
Joined: Jul 2006
Posts: 3,723
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,723
He clearly said that we need the output from the command from his previous post


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: write -dlX Bug? [Re: endgeek] #235501 22/12/11 01:10 AM
Joined: Apr 2010
Posts: 958
F
FroggieDaFrog Offline
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 958
This:
Code:
//echo -a OS: $os Mirc: $version $file($mircexe).sig $md5($mircexe,2) Scripts: $script(0) DLLs: $dll(0) COMs: $com(0)


I am SReject
My Stuff
Re: write -dlX Bug? [Re: FroggieDaFrog] #235514 23/12/11 09:31 AM
Joined: Dec 2011
Posts: 5
E
endgeek Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Dec 2011
Posts: 5
OS: 7 Mirc: 7.22 ok 912dfaee60f144853a33231688312686 Scripts: 1 DLLs: 0 COMs: 0

Re: write -dlX Bug? [Re: endgeek] #236071 02/02/12 01:02 PM
Joined: Dec 2002
Posts: 4,830
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,830
Thanks for the bug report, unfortunately I was not able to reproduce this issue here. Are you using anti-virus or firewall software? If you disable them and then try to run this test again, do you still see the same issue?