mIRC Homepage
Posted By: endgeek write -dlX Bug? - 19/12/11 03:36 PM
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
Posted By: Loki12583 Re: write -dlX Bug? - 19/12/11 10:30 PM
I do not have this issue, maybe the file was open and locked by another program.
Posted By: endgeek Re: write -dlX Bug? - 19/12/11 11:33 PM
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...
Posted By: argv0 Re: write -dlX Bug? - 20/12/11 03:06 AM
Type the following in mIRC:

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

Report the results here.
Posted By: endgeek Re: write -dlX Bug? - 20/12/11 08:34 AM
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
Posted By: argv0 Re: write -dlX Bug? - 20/12/11 10:44 AM
That doesn't help, we require the actual output from the command.
Posted By: endgeek Re: write -dlX Bug? - 21/12/11 10:46 PM
what info do you need?
Posted By: Wims Re: write -dlX Bug? - 21/12/11 11:41 PM
He clearly said that we need the output from the command from his previous post
Posted By: FroggieDaFrog Re: write -dlX Bug? - 22/12/11 01:10 AM
This:
Code:
//echo -a OS: $os Mirc: $version $file($mircexe).sig $md5($mircexe,2) Scripts: $script(0) DLLs: $dll(0) COMs: $com(0)
Posted By: endgeek Re: write -dlX Bug? - 23/12/11 09:31 AM
OS: 7 Mirc: 7.22 ok 912dfaee60f144853a33231688312686 Scripts: 1 DLLs: 0 COMs: 0
Posted By: Khaled Re: write -dlX Bug? - 02/02/12 01:02 PM
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?
© mIRC Discussion Forums